sna/gen5: Replace pipe-control with full MI_FLUSH for required CS stall
It appears that we need top-of-pipe synchronisation for changing of certain state, and that the gen5 pipecontrol instruction is insufficient. So we have to fall back on the good old MI_FLUSH in order to make sure that the GPU invalidates its state correctly. Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51422 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
aa439ffee4
commit
dbf98d8963
|
|
@ -1019,10 +1019,14 @@ gen5_emit_vertex_elements(struct sna *sna,
|
|||
inline static void
|
||||
gen5_emit_pipe_flush(struct sna *sna)
|
||||
{
|
||||
#if 0
|
||||
OUT_BATCH(GEN5_PIPE_CONTROL | (4 - 2));
|
||||
OUT_BATCH(GEN5_PIPE_CONTROL_WC_FLUSH);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
#else
|
||||
OUT_BATCH(MI_FLUSH | MI_INHIBIT_RENDER_CACHE_FLUSH);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in New Issue