mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
i965/gen6: Reduce updates of transform feedback offsets with HW contexts.
The software-tracked transform feedback offsets (svbi_0_starting_index) are incorrect in the presence of primitive restart, so we were actually updating it with a bogus value if the batch wrapped and we emitted the packet again during a single transform feedback. By reducing state emission, we avoid the bug. Fixes piglit OpenGL 3.1/primitive-restart-xfb flush Reviewed-by: Paul Berry <stereotype441@gmail.com> NOTE: This is a candidate for the 9.1 branch.
This commit is contained in:
parent
62a18da341
commit
007a88ed24
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ gen6_update_sol_indices(struct brw_context *brw)
|
|||
const struct brw_tracked_state gen6_sol_indices = {
|
||||
.dirty = {
|
||||
.mesa = 0,
|
||||
.brw = (BRW_NEW_BATCH |
|
||||
.brw = (BRW_NEW_CONTEXT |
|
||||
BRW_NEW_SOL_INDICES),
|
||||
.cache = 0
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue