mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
Revert "radv: handle fbfetch output after binding graphics shaders"
This is actually wrong because if radv_handle_fbfetch_output() triggers
a decompression pass and graphics shaders (ESO) are saved/restored
they won't be updated because radv_bind_graphics_shaders() was called
before.
This fixes a very recent regression that I noticed while implementing
a new extension.
This reverts commit 9b912f00c7.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37194>
This commit is contained in:
parent
b69b953973
commit
9039f33a8d
1 changed files with 4 additions and 4 deletions
|
|
@ -12362,15 +12362,15 @@ radv_before_draw(struct radv_cmd_buffer *cmd_buffer, const struct radv_draw_info
|
|||
cmd_buffer->state.last_index_type = -1;
|
||||
}
|
||||
|
||||
if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_GRAPHICS_SHADERS) {
|
||||
radv_bind_graphics_shaders(cmd_buffer);
|
||||
}
|
||||
|
||||
if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_FBFETCH_OUTPUT) {
|
||||
radv_handle_fbfetch_output(cmd_buffer);
|
||||
cmd_buffer->state.dirty &= ~RADV_CMD_DIRTY_FBFETCH_OUTPUT;
|
||||
}
|
||||
|
||||
if (cmd_buffer->state.dirty & RADV_CMD_DIRTY_GRAPHICS_SHADERS) {
|
||||
radv_bind_graphics_shaders(cmd_buffer);
|
||||
}
|
||||
|
||||
/* This is the optimal packet order:
|
||||
* Set all states first, so that all SET packets are processed in parallel with previous draw
|
||||
* calls. Then flush caches and wait if needed. Then draw and prefetch at the end. It's better
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue