mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
r600g: Set RADEON_FLUSH_KEEP_TILING_FLAGS when emitting compute cs
This commit is contained in:
parent
dda49c3cb7
commit
defe8f0da2
1 changed files with 7 additions and 1 deletions
|
|
@ -320,6 +320,7 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout,
|
|||
const uint *grid_layout)
|
||||
{
|
||||
struct radeon_winsys_cs *cs = ctx->cs;
|
||||
unsigned flush_flags = 0;
|
||||
int i;
|
||||
|
||||
struct r600_resource *onebo = NULL;
|
||||
|
|
@ -423,7 +424,12 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout,
|
|||
}
|
||||
#endif
|
||||
|
||||
ctx->ws->cs_flush(ctx->cs, RADEON_FLUSH_ASYNC | RADEON_FLUSH_COMPUTE);
|
||||
flush_flags = RADEON_FLUSH_ASYNC | RADEON_FLUSH_COMPUTE;
|
||||
if (ctx->keep_tiling_flags) {
|
||||
flush_flags |= RADEON_FLUSH_KEEP_TILING_FLAGS;
|
||||
}
|
||||
|
||||
ctx->ws->cs_flush(ctx->cs, flush_flags);
|
||||
|
||||
ctx->pm4_dirty_cdwords = 0;
|
||||
ctx->flags = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue