aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlene Liu <[email protected]>2017-09-25 15:52:49 -0400
committerAlex Deucher <[email protected]>2017-10-21 16:43:24 -0400
commite778915c916229475ba76267534b70834ba8de8d (patch)
tree36211a4278cd244645b4b6dd0d6084cae86e6068
parent544276514760f293eadb68461f1b45b6ccec073e (diff)
drm/amd/display: temp disable DCC on high res.
Signed-off-by: Charlene Liu <[email protected]> Reviewed-by: Yongqiang Sun <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
index 82c82b6310ca..dd3ff5114d42 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
@@ -1133,20 +1133,27 @@ static bool get_dcc_compression_cap(const struct dc *dc,
output->grph.rgb.max_uncompressed_blk_size = 256;
output->grph.rgb.max_compressed_blk_size = 256;
output->grph.rgb.independent_64b_blks = false;
+ output->capable = true;
+ output->const_color_support = false;
break;
case dcc_control__128_128_xxx:
output->grph.rgb.max_uncompressed_blk_size = 128;
output->grph.rgb.max_compressed_blk_size = 128;
output->grph.rgb.independent_64b_blks = false;
+ /*temp: not allow dcc on high res*/
+ output->capable = false;
+ output->const_color_support = false;
break;
case dcc_control__256_64_64:
output->grph.rgb.max_uncompressed_blk_size = 256;
output->grph.rgb.max_compressed_blk_size = 64;
output->grph.rgb.independent_64b_blks = true;
+ /*temp: not allow dcc on high res*/
+ output->capable = false;
+ output->const_color_support = false;
break;
}
- output->capable = true;
- output->const_color_support = false;
+
return true;
}