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 <samuel.pitoiset@gmail.com>
This commit is contained in:
Samuel Pitoiset 2026-05-07 17:46:15 +02:00
parent defcae86e6
commit 8a5b9fdbe8

View file

@ -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);