diff options
author | Samuel Pitoiset <[email protected]> | 2018-09-28 14:35:52 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-10-01 12:13:12 +0200 |
commit | c2867e4c2aae87bd9e0cb11cb67ed63175fce824 (patch) | |
tree | 64851af7596c09b2005e3f0f6a9c5626753a47bf /src | |
parent | f622ab889ae911704eb659909ac9723c312bdb20 (diff) |
radv: do not try to set DCC_CONTROL when image doesn't use DCC
Unnecessary. While we are at it, remove the check for pre-VI
because it's already checked earlier.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index f7752eac83b..3e0d75bb1b6 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -3901,7 +3901,7 @@ radv_init_dcc_control_reg(struct radv_device *device, unsigned max_compressed_block_size; unsigned independent_64b_blocks; - if (device->physical_device->rad_info.chip_class < VI) + if (!radv_image_has_dcc(iview->image)) return 0; if (iview->image->info.samples > 1) { |