mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965/gen7: Don't emit 3DSTATE_GS_SVB_INDEX on Ivybridge.
According to vol2a.07, it only applies from Cantiga to Sandybridge. I found this in my ringbuffers while investigating various GPU hangs. While it may not have been the cause, it seemed wise to remove it. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
626440add5
commit
2a63807616
1 changed files with 9 additions and 7 deletions
|
|
@ -606,13 +606,15 @@ static void upload_invarient_state( struct brw_context *brw )
|
|||
OUT_BATCH(1);
|
||||
ADVANCE_BATCH();
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
BEGIN_BATCH(4);
|
||||
OUT_BATCH(_3DSTATE_GS_SVB_INDEX << 16 | (4 - 2));
|
||||
OUT_BATCH(i << SVB_INDEX_SHIFT);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0xffffffff);
|
||||
ADVANCE_BATCH();
|
||||
if (intel->gen < 7) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
BEGIN_BATCH(4);
|
||||
OUT_BATCH(_3DSTATE_GS_SVB_INDEX << 16 | (4 - 2));
|
||||
OUT_BATCH(i << SVB_INDEX_SHIFT);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0xffffffff);
|
||||
ADVANCE_BATCH();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue