aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_hw_types.h
diff options
context:
space:
mode:
authorBayan Zabihiyan <bayan.zabihiyan@amd.com>2019-07-26 11:10:11 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-08-23 11:42:58 -0500
commit5e1613e21fc1ea5c0888f4c858aa220ff8464d53 (patch)
treef51e5ba2b39fc08ccc3ed7d0f8236da4aa5218b3 /drivers/gpu/drm/amd/display/dc/dc_hw_types.h
parentdrm/amd/display: fix odm validation (diff)
downloadlinux-dev-5e1613e21fc1ea5c0888f4c858aa220ff8464d53.tar.xz
linux-dev-5e1613e21fc1ea5c0888f4c858aa220ff8464d53.zip
drm/amd/display: add Cursor Degamma logic for DCN2
[Why] We need to have the ability to to tell us set degamma on the cursor. [How] Pass a flag down to register programming that tells us if the current surface format needs cursor degamma. Signed-off-by: Bayan Zabihiyan <bayan.zabihiyan@amd.com> Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_hw_types.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_hw_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h
index 929c4eadc1dc..f35826d5d1e5 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h
@@ -516,7 +516,8 @@ union dc_cursor_attribute_flags {
uint32_t INVERT_PIXEL_DATA:1;
uint32_t ZERO_EXPANSION:1;
uint32_t MIN_MAX_INVERT:1;
- uint32_t RESERVED:25;
+ uint32_t ENABLE_CURSOR_DEGAMMA:1;
+ uint32_t RESERVED:24;
} bits;
uint32_t value;
};