Mesa (master): radv: do not try to set DCC_CONTROL when image doesn't use DCC
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 1 10:14:39 UTC 2018
Module: Mesa
Branch: master
Commit: c2867e4c2aae87bd9e0cb11cb67ed63175fce824
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2867e4c2aae87bd9e0cb11cb67ed63175fce824
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Fri Sep 28 14:35:52 2018 +0200
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 <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/vulkan/radv_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index f7752eac83..3e0d75bb1b 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) {
More information about the mesa-commit
mailing list