summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc.h
diff options
context:
space:
mode:
authorAndrew Jiang2017-12-20 16:07:42 +0100
committerAlex Deucher2018-02-19 20:17:31 +0100
commit405c50a07d3f67971d3e01cec83dbdcd5bdd529e (patch)
treecb41bfdbcab6203e0fe29e9977e783336ebd10f2 /drivers/gpu/drm/amd/display/dc/dc.h
parentdrm/amd/display: Define remove_stream_from_ctx resource func (diff)
downloadkernel-qcow2-linux-405c50a07d3f67971d3e01cec83dbdcd5bdd529e.tar.gz
kernel-qcow2-linux-405c50a07d3f67971d3e01cec83dbdcd5bdd529e.tar.xz
kernel-qcow2-linux-405c50a07d3f67971d3e01cec83dbdcd5bdd529e.zip
drm/amd/display: Fix check for setting input TF
We no longer change the plane state pointer for full updates, and as such, we weren't setting the input transfer function and programming the degamma registers when we are supposed to. Check for a full update, an input TF change, or a gamma change in the update flags instead to correct this. Signed-off-by: Andrew Jiang <Andrew.Jiang@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index 15bd3556270c..bc595bc15fe2 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -395,12 +395,13 @@ union surface_update_flags {
uint32_t swizzle_change:1;
uint32_t scaling_change:1;
uint32_t position_change:1;
- uint32_t in_transfer_func:1;
+ uint32_t in_transfer_func_change:1;
uint32_t input_csc_change:1;
/* Full updates */
uint32_t new_plane:1;
uint32_t bpp_change:1;
+ uint32_t gamma_change:1;
uint32_t bandwidth_change:1;
uint32_t clock_change:1;
uint32_t stereo_format_change:1;