mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
gallium/radeon: remove RADEON_FLUSH_KEEP_TILING_FLAGS flag
always set Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
0b626d7524
commit
1a1cc67edd
5 changed files with 4 additions and 16 deletions
|
|
@ -78,8 +78,6 @@ void r300_flush(struct pipe_context *pipe,
|
|||
{
|
||||
struct r300_context *r300 = r300_context(pipe);
|
||||
|
||||
flags |= RADEON_FLUSH_KEEP_TILING_FLAGS;
|
||||
|
||||
if (r300->dirty_hw) {
|
||||
r300_flush_and_cleanup(r300, flags, fence);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -274,9 +274,6 @@ void r600_context_gfx_flush(void *context, unsigned flags,
|
|||
radeon_set_context_reg(cs, R_028350_SX_MISC, 0);
|
||||
}
|
||||
|
||||
/* force to keep tiling flags */
|
||||
flags |= RADEON_FLUSH_KEEP_TILING_FLAGS;
|
||||
|
||||
/* Flush the CS. */
|
||||
ctx->b.ws->cs_flush(cs, flags, fence);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,8 +29,7 @@
|
|||
#include "pipebuffer/pb_buffer.h"
|
||||
|
||||
#define RADEON_FLUSH_ASYNC (1 << 0)
|
||||
#define RADEON_FLUSH_KEEP_TILING_FLAGS (1 << 1)
|
||||
#define RADEON_FLUSH_END_OF_FRAME (1 << 2)
|
||||
#define RADEON_FLUSH_END_OF_FRAME (1 << 1)
|
||||
|
||||
/* Tiling flags. */
|
||||
enum radeon_bo_layout {
|
||||
|
|
|
|||
|
|
@ -123,9 +123,6 @@ void si_context_gfx_flush(void *context, unsigned flags,
|
|||
|
||||
si_emit_cache_flush(ctx, NULL);
|
||||
|
||||
/* force to keep tiling flags */
|
||||
flags |= RADEON_FLUSH_KEEP_TILING_FLAGS;
|
||||
|
||||
if (ctx->trace_buf)
|
||||
si_trace_emit(ctx);
|
||||
|
||||
|
|
|
|||
|
|
@ -563,13 +563,10 @@ static int radeon_drm_cs_flush(struct radeon_winsys_cs *rcs,
|
|||
default:
|
||||
case RING_GFX:
|
||||
case RING_COMPUTE:
|
||||
cs->cst->flags[0] = 0;
|
||||
cs->cst->flags[0] = RADEON_CS_KEEP_TILING_FLAGS;
|
||||
cs->cst->flags[1] = RADEON_CS_RING_GFX;
|
||||
cs->cst->cs.num_chunks = 2;
|
||||
if (flags & RADEON_FLUSH_KEEP_TILING_FLAGS) {
|
||||
cs->cst->flags[0] |= RADEON_CS_KEEP_TILING_FLAGS;
|
||||
cs->cst->cs.num_chunks = 3;
|
||||
}
|
||||
cs->cst->cs.num_chunks = 3;
|
||||
|
||||
if (cs->ws->info.has_virtual_memory) {
|
||||
cs->cst->flags[0] |= RADEON_CS_USE_VM;
|
||||
cs->cst->cs.num_chunks = 3;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue