mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
radeonsi: remove SI_CONTEXT_FLUSH_AND_INV_FRAMEBUFFER
not necessary Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
65df38b191
commit
4c288c73ea
3 changed files with 6 additions and 6 deletions
|
|
@ -64,9 +64,6 @@
|
|||
#define SI_CONTEXT_VGT_FLUSH (R600_CONTEXT_PRIVATE_FLAG << 12)
|
||||
#define SI_CONTEXT_VGT_STREAMOUT_SYNC (R600_CONTEXT_PRIVATE_FLAG << 13)
|
||||
|
||||
#define SI_CONTEXT_FLUSH_AND_INV_FRAMEBUFFER (SI_CONTEXT_FLUSH_AND_INV_CB | \
|
||||
SI_CONTEXT_FLUSH_AND_INV_DB)
|
||||
|
||||
#define SI_MAX_BORDER_COLORS 4096
|
||||
|
||||
struct si_compute;
|
||||
|
|
|
|||
|
|
@ -2371,7 +2371,8 @@ static void si_set_framebuffer_state(struct pipe_context *ctx,
|
|||
*/
|
||||
sctx->b.flags |= SI_CONTEXT_INV_VMEM_L1 |
|
||||
SI_CONTEXT_INV_GLOBAL_L2 |
|
||||
SI_CONTEXT_FLUSH_AND_INV_FRAMEBUFFER |
|
||||
SI_CONTEXT_FLUSH_AND_INV_CB |
|
||||
SI_CONTEXT_FLUSH_AND_INV_DB |
|
||||
SI_CONTEXT_CS_PARTIAL_FLUSH;
|
||||
|
||||
/* Take the maximum of the old and new count. If the new count is lower,
|
||||
|
|
@ -3574,7 +3575,8 @@ static void si_memory_barrier(struct pipe_context *ctx, unsigned flags)
|
|||
}
|
||||
|
||||
if (flags & PIPE_BARRIER_FRAMEBUFFER)
|
||||
sctx->b.flags |= SI_CONTEXT_FLUSH_AND_INV_FRAMEBUFFER;
|
||||
sctx->b.flags |= SI_CONTEXT_FLUSH_AND_INV_CB |
|
||||
SI_CONTEXT_FLUSH_AND_INV_DB;
|
||||
|
||||
if (flags & (PIPE_BARRIER_FRAMEBUFFER |
|
||||
PIPE_BARRIER_INDIRECT_BUFFER))
|
||||
|
|
|
|||
|
|
@ -749,7 +749,8 @@ void si_emit_cache_flush(struct si_context *sctx)
|
|||
struct radeon_winsys_cs *cs = rctx->gfx.cs;
|
||||
uint32_t cp_coher_cntl = 0;
|
||||
|
||||
if (rctx->flags & SI_CONTEXT_FLUSH_AND_INV_FRAMEBUFFER)
|
||||
if (rctx->flags & (SI_CONTEXT_FLUSH_AND_INV_CB |
|
||||
SI_CONTEXT_FLUSH_AND_INV_DB))
|
||||
sctx->b.num_fb_cache_flushes++;
|
||||
|
||||
/* SI has a bug that it always flushes ICACHE and KCACHE if either
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue