From 8a5b9fdbe847fca90336f30f4fe3e0a188d316b2 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 7 May 2026 17:46:15 +0200 Subject: [PATCH] radv: avoid an useless copy of VRS rates to the internal ds image It's only needed when there is a VRS view without a depth/stencil view because if the driver can't copy the VRS rates to the depth/stencil view it forces VRS to be 1x1. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_cmd_buffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 06718f95cc8..d5a86fee919 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -10414,9 +10414,9 @@ radv_CmdBeginRendering(VkCommandBuffer commandBuffer, const VkRenderingInfo *pRe /* Copy the VRS rates to the HTILE buffer. */ radv_copy_vrs_htile(cmd_buffer, vrs_att.iview, &render_area, ds_image, htile_va, true); - } else { - /* When a subpass uses a VRS attachment without binding a depth/stencil attachment, or when - * HTILE isn't enabled, we use a fallback that copies the VRS rates to our internal HTILE buffer. + } else if (!ds_att.iview) { + /* When a subpass uses a VRS attachment without binding a depth/stencil attachment, we + * use a fallback that copies the VRS rates to our internal HTILE buffer. */ struct radv_image *ds_image = radv_cmd_buffer_get_vrs_image(cmd_buffer);