From 4e17452387eaf228eafa73acf77d65b2c6610afc Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Wed, 11 Sep 2024 12:45:00 -0400 Subject: [PATCH] anv: Load fast clear colors more often If a render area covers an area that is smaller than an attachment's extent and is not aligned to the CCS block size, we must load the clear color so that the pixels outside of that area are decompressed with the right clear color. Prevents the next patch from causing the following test failure on gfx9: dEQP-VK.renderpass.suballocation.load_store_op_none.color_load_op_none_store_op_none Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_cmd_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 30756c18c76..7274837768a 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -5409,6 +5409,8 @@ void genX(CmdBeginRendering)( if (GFX_VER < 10 && (att->loadOp == VK_ATTACHMENT_LOAD_OP_LOAD || + render_area.extent.width != iview->vk.extent.width || + render_area.extent.height != iview->vk.extent.height || (gfx->rendering_flags & VK_RENDERING_RESUMING_BIT)) && iview->image->planes[0].aux_usage != ISL_AUX_USAGE_NONE && iview->planes[0].isl.base_level == 0 &&