[Mesa-dev] [PATCH] radv: do not try to set DCC_CONTROL when image doesn't use DCC

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Sep 28 12:35:52 UTC 2018


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>
---
 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 7733869762..8726845df6 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) {
-- 
2.19.0



More information about the mesa-dev mailing list