mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 01:10:44 +02:00
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: fcedb1250b ("vulkan: Add a common data structure for dynamic states")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18160>
This commit is contained in:
parent
136a26f271
commit
6ffbb1abdb
1 changed files with 2 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue