diff options
| author | Daniel Vetter <[email protected]> | 2017-04-03 08:33:01 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2017-04-06 08:21:55 +0000 |
| commit | 6d124ff845334bc466f56c059147e7ad587c2e7e (patch) | |
| tree | 7b1e65482312d947f8f461924183855a5e304bfc /drivers/gpu/drm/ast/ast_mode.c | |
| parent | drm: Add explicit acquire ctx handling around ->gamma_set (diff) | |
| download | kernel-6d124ff845334bc466f56c059147e7ad587c2e7e.tar.gz kernel-6d124ff845334bc466f56c059147e7ad587c2e7e.zip | |
drm: Add acquire ctx to ->gamma_set hook
Atomic helpers really want this instead of the hacked-up legacy
backoff trick, which unfortunately prevents drivers from using their
own private drm_modeset_locks.
Aside: There's a few atomic drivers (nv50, vc4, soon vmwgfx) which
don't yet use the new atomic color mgmt/gamma table stuff. Would be
nice if they could switch over and just hook up
drm_atomic_helper_legacy_gamma_set() instead.
Cc: Dave Airlie <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Christian König <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Ben Skeggs <[email protected]>
Cc: Sinclair Yeh <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Cc: Eric Anholt <[email protected]>
Reviewed-by: Maarten Lankhorst <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Sinclair Yeh <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/ast/ast_mode.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_mode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 47b78e52691c..aaef0a652f10 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -645,7 +645,8 @@ static void ast_crtc_reset(struct drm_crtc *crtc) } static int ast_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, uint32_t size) + u16 *blue, uint32_t size, + struct drm_modeset_acquire_ctx *ctx) { struct ast_crtc *ast_crtc = to_ast_crtc(crtc); int i; |
