mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
r600g: fix userspace fences again
reinstateb7617346dcafter the rework in6067a2a67f. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
This commit is contained in:
parent
6067a2a67f
commit
abee17057f
1 changed files with 3 additions and 0 deletions
|
|
@ -1310,6 +1310,9 @@ void r600_context_flush(struct r600_context *ctx)
|
|||
else
|
||||
r600_context_flush_dest_caches(ctx);
|
||||
|
||||
/* partial flush is needed to avoid lockups on some chips with user fences */
|
||||
ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_EVENT_WRITE, 0, 0);
|
||||
ctx->pm4[ctx->pm4_cdwords++] = EVENT_TYPE(EVENT_TYPE_PS_PARTIAL_FLUSH) | EVENT_INDEX(4);
|
||||
/* emit fence */
|
||||
ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_EVENT_WRITE_EOP, 4, 0);
|
||||
ctx->pm4[ctx->pm4_cdwords++] = EVENT_TYPE(EVENT_TYPE_CACHE_FLUSH_AND_INV_TS_EVENT) | EVENT_INDEX(5);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue