mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
defcae86e6
commit
8a5b9fdbe8
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue