{
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 {
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);
#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 {
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);
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;