tu: Fix reading of stale (V)PC_PRIMITIVE_CNTL_0
PC_PRIMITIVE_CNTL_0 is not set in a draw state and may be changed
by 3d blits, so we have to re-emit it a the start of a renderpass.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9941
Fixes: 7be8d0f7f4
("tu: Use common dirty tracking for PC_PRIMITIVE_CNTL_0")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25918>
This commit is contained in:
committed by
Marge Bot
parent
0477346c0b
commit
cdbb8b5412
@@ -1610,6 +1610,11 @@ tu_emit_renderpass_begin(struct tu_cmd_buffer *cmd)
|
||||
*/
|
||||
BITSET_SET(cmd->vk.dynamic_graphics_state.dirty,
|
||||
MESA_VK_DYNAMIC_MS_RASTERIZATION_SAMPLES);
|
||||
/* PC_PRIMITIVE_CNTL_0 isn't a part of a draw state and may be changed
|
||||
* by blits.
|
||||
*/
|
||||
BITSET_SET(cmd->vk.dynamic_graphics_state.dirty,
|
||||
MESA_VK_DYNAMIC_IA_PRIMITIVE_RESTART_ENABLE);
|
||||
}
|
||||
|
||||
template <chip CHIP>
|
||||
|
||||
Reference in New Issue
Block a user