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> (cherry picked from commit6ffbb1abdb
)
This commit is contained in:

committed by
Dylan Baker

parent
1959ee0183
commit
f0193e09e1
@@ -4576,7 +4576,7 @@
|
||||
"description": "vulkan: Dirty VP_VIEWPORTS/SCISSORS when copying viewports/scissors",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "fcedb1250bb8f05ef047b8b477169d70af9ef27d"
|
||||
},
|
||||
|
@@ -1546,13 +1546,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)) {
|
||||
|
Reference in New Issue
Block a user