r600g,radeonsi: don't skip the context flush if a fence should be returned
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77589
This commit is contained in:
@@ -236,7 +236,7 @@ void r600_context_gfx_flush(void *context, unsigned flags,
|
||||
struct r600_context *ctx = context;
|
||||
struct radeon_winsys_cs *cs = ctx->b.rings.gfx.cs;
|
||||
|
||||
if (cs->cdw == ctx->b.initial_gfx_cs_size)
|
||||
if (cs->cdw == ctx->b.initial_gfx_cs_size && !fence)
|
||||
return;
|
||||
|
||||
ctx->b.rings.gfx.flushing = true;
|
||||
|
||||
@@ -83,7 +83,7 @@ void si_context_gfx_flush(void *context, unsigned flags,
|
||||
struct si_context *ctx = context;
|
||||
struct radeon_winsys_cs *cs = ctx->b.rings.gfx.cs;
|
||||
|
||||
if (cs->cdw == ctx->b.initial_gfx_cs_size)
|
||||
if (cs->cdw == ctx->b.initial_gfx_cs_size && !fence)
|
||||
return;
|
||||
|
||||
ctx->b.rings.gfx.flushing = true;
|
||||
|
||||
Reference in New Issue
Block a user