drm/amd/display: temp disable DCC on high res.
authorCharlene Liu <charlene.liu@amd.com>
Mon, 25 Sep 2017 19:52:49 +0000 (15:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:43:24 +0000 (16:43 -0400)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c

index 82c82b6310ca5dc5a0e2c44eb729f781445a5934..dd3ff5114d427fc78bb73b12a977a09898098d6c 100644 (file)
@@ -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;
 }