Module: Mesa Branch: main Commit: 9cd8908c0304b93384fed7f84e471ce62a9abf2a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cd8908c0304b93384fed7f84e471ce62a9abf2a
Author: Samuel Pitoiset <[email protected]> Date: Thu Jan 6 16:56:21 2022 +0100 radv: fix computing the fb size in presence of dynamic VRS attachment This fixes dEQP-VK.fragment_shading_rate.dynamic_rendering.attachment_rate.*. Fixes: e914a6710fd ("radv: Expose the VK_KHR_dynamic_rendering extension.") Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14421> --- src/amd/vulkan/radv_cmd_buffer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 9038ca3002b..82b526a7898 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -7812,6 +7812,10 @@ radv_CmdBeginRenderingKHR(VkCommandBuffer commandBuffer, const VkRenderingInfoKH unsigned h = pRenderingInfo->renderArea.offset.y + pRenderingInfo->renderArea.extent.height; for (unsigned i = 0; i < att_count; ++i) { RADV_FROM_HANDLE(radv_image_view, iview, iviews[i]); + + if (vrs_info && vrs_info->imageView == iviews[i]) + continue; + w = MIN2(w, iview->extent.width); h = MIN2(h, iview->extent.height); }
