Module: Mesa Branch: main Commit: 6ffbb1abdb26faf341383cbc6bd337a04151711e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ffbb1abdb26faf341383cbc6bd337a04151711e
Author: Jason Ekstrand <[email protected]> Date: Sat Aug 20 12:57:06 2022 -0500 vulkan: Dirty VP_VIEWPORTS/SCISSORS when copying viewports/scissors The only reason why we didn't notice before is because ANV always re-emits all scissors and viewports if the count changes. Fixes: fcedb1250bb8 ("vulkan: Add a common data structure for dynamic states") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18160> --- src/vulkan/runtime/vk_graphics_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/runtime/vk_graphics_state.c b/src/vulkan/runtime/vk_graphics_state.c index 9b4ae9c9795..f21a2e504ca 100644 --- a/src/vulkan/runtime/vk_graphics_state.c +++ b/src/vulkan/runtime/vk_graphics_state.c @@ -1557,13 +1557,13 @@ vk_dynamic_graphics_state_copy(struct vk_dynamic_graphics_state *dst, COPY_IF_SET(VP_VIEWPORT_COUNT, vp.viewport_count); if (IS_SET_IN_SRC(VP_VIEWPORTS)) { assert(IS_SET_IN_SRC(VP_VIEWPORT_COUNT)); - COPY_ARRAY(VP_VIEWPORT_COUNT, vp.viewports, src->vp.viewport_count); + COPY_ARRAY(VP_VIEWPORTS, vp.viewports, src->vp.viewport_count); } COPY_IF_SET(VP_SCISSOR_COUNT, vp.scissor_count); if (IS_SET_IN_SRC(VP_SCISSORS)) { assert(IS_SET_IN_SRC(VP_SCISSOR_COUNT)); - COPY_ARRAY(VP_SCISSOR_COUNT, vp.scissors, src->vp.scissor_count); + COPY_ARRAY(VP_SCISSORS, vp.scissors, src->vp.scissor_count); } if (IS_SET_IN_SRC(DR_RECTANGLES)) {
