mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
radeonsi: don't flush when si_eliminate_fast_color_clear is no-op
This commit is contained in:
parent
5f55f4c59f
commit
b494ed168c
1 changed files with 5 additions and 1 deletions
|
|
@ -389,8 +389,12 @@ void si_eliminate_fast_color_clear(struct r600_common_context *rctx,
|
|||
if (ctx == sscreen->aux_context)
|
||||
mtx_lock(&sscreen->aux_context_lock);
|
||||
|
||||
unsigned n = rctx->num_decompress_calls;
|
||||
ctx->flush_resource(ctx, &rtex->resource.b.b);
|
||||
ctx->flush(ctx, NULL, 0);
|
||||
|
||||
/* Flush only if any fast clear elimination took place. */
|
||||
if (n != rctx->num_decompress_calls)
|
||||
ctx->flush(ctx, NULL, 0);
|
||||
|
||||
if (ctx == sscreen->aux_context)
|
||||
mtx_unlock(&sscreen->aux_context_lock);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue