mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
i965: Emit post-sync non-zero flush before 3DSTATE_GS_SVB_INDEX.
From the comments above intel_emit_post_sync_nonzero_flush:
"[DevSNB-C+{W/A}] Before any depth stall flush (including those
produced by non-pipelined state commands), software needs to first
send a PIPE_CONTROL with no bits set except Post-Sync Operation != 0."
This suggests that every non-pipelined (0x79xx) command needs a
post-sync non-zero flush before it.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Xinkai Chen <yeled.nova@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
32a3f5f6d7
commit
436e815a25
1 changed files with 3 additions and 0 deletions
|
|
@ -153,6 +153,9 @@ brw_begin_transform_feedback(struct gl_context *ctx, GLenum mode,
|
|||
= _mesa_compute_max_transform_feedback_vertices(xfb_obj,
|
||||
linked_xfb_info);
|
||||
|
||||
/* 3DSTATE_GS_SVB_INDEX is non-pipelined. */
|
||||
intel_emit_post_sync_nonzero_flush(brw);
|
||||
|
||||
/* Initialize the SVBI 0 register to zero and set the maximum index. */
|
||||
BEGIN_BATCH(4);
|
||||
OUT_BATCH(_3DSTATE_GS_SVB_INDEX << 16 | (4 - 2));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue