mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
tu: Fix assert in FDM state emission
Making the sub_cs not writeable switches the BO we're emitting to, which causes an assert failure in tu_cs_end_sub_stream() because it looks like we have a mismatched start/end. Just make it not writeable later. Fixes:97da0a7734("tu: Rewrite to use common Vulkan dynamic state") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25225> (cherry picked from commit64ed357699)
This commit is contained in:
parent
8ddfe6b743
commit
d86619a498
2 changed files with 2 additions and 2 deletions
|
|
@ -2124,7 +2124,7 @@
|
|||
"description": "tu: Fix assert in FDM state emission",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "97da0a7734188f4b666bc38833bfadc8b4c53f84",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -4627,9 +4627,9 @@ tu_emit_draw_state(struct tu_cmd_buffer *cmd)
|
|||
if (cmd->state.pipeline_has_fdm) { \
|
||||
tu_cs_set_writeable(&cmd->sub_cs, true); \
|
||||
tu6_emit_##name##_fdm(&cs, cmd, __VA_ARGS__); \
|
||||
tu_cs_set_writeable(&cmd->sub_cs, false); \
|
||||
cmd->state.dynamic_state[id] = \
|
||||
tu_cs_end_draw_state(&cmd->sub_cs, &cs); \
|
||||
tu_cs_set_writeable(&cmd->sub_cs, false); \
|
||||
} else { \
|
||||
unsigned size = tu6_##name##_size(cmd->device, __VA_ARGS__); \
|
||||
if (size > 0) { \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue