r600g: rename GPU_FLUSH -> INVAL_READ_CACHES
authorMarek Olšák <maraeo@gmail.com>
Sat, 22 Dec 2012 18:05:37 +0000 (19:05 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 22 Dec 2012 18:39:29 +0000 (19:39 +0100)
because that's what it does.

src/gallium/drivers/r600/evergreen_compute.c
src/gallium/drivers/r600/evergreen_compute_internal.c
src/gallium/drivers/r600/r600.h
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/r600/r600_state_common.c

index ea75d805e061b1bb1e9f691342c20ba0317abbe3..8d3050beff05246972b6f200d9baefcbab850dd3 100644 (file)
@@ -98,7 +98,7 @@ static void evergreen_cs_set_vertex_buffer(
 
        /* The vertex instructions in the compute shaders use the texture cache,
         * so we need to invalidate it. */
-       rctx->flags |= R600_CONTEXT_GPU_FLUSH;
+       rctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
        state->enabled_mask |= 1 << vb_index;
        state->dirty_mask |= 1 << vb_index;
        state->atom.dirty = true;
@@ -409,7 +409,7 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout,
 
        /* XXX evergreen_flush_emit() hardcodes the CP_COHER_SIZE to 0xffffffff
         */
-       ctx->flags |= R600_CONTEXT_GPU_FLUSH;
+       ctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
        r600_flush_emit(ctx);
 
 #if 0
@@ -468,7 +468,7 @@ void evergreen_emit_cs_shader(
        r600_write_value(cs, r600_context_bo_reloc(rctx, kernel->code_bo,
                                                        RADEON_USAGE_READ));
 
-       rctx->flags |= R600_CONTEXT_GPU_FLUSH;
+       rctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
 }
 
 static void evergreen_launch_grid(
index 94f556f38b37e1a235abbacc915ca7d598743ba6..1654ab0545843ed854433c6c943ce8f655e2a721 100644 (file)
@@ -545,7 +545,7 @@ void evergreen_set_tex_resource(
                             util_format_get_blockwidth(tmp->resource.b.b.format) *
                             view->base.texture->width0*height*depth;
 
-       pipe->ctx->flags |= R600_CONTEXT_GPU_FLUSH;
+       pipe->ctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
 
        evergreen_emit_force_reloc(res);
        evergreen_emit_force_reloc(res);
@@ -604,7 +604,7 @@ void evergreen_set_const_cache(
        res->usage = RADEON_USAGE_READ;
        res->coher_bo_size = size;
 
-       pipe->ctx->flags |= R600_CONTEXT_GPU_FLUSH;
+       pipe->ctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
 }
 
 struct r600_resource* r600_compute_buffer_alloc_vram(
index c351982aa277f3c9b88cdfa5a7224261016dd225..b6f7d0384e24dfd6f4e64590d2060b139065543b 100644 (file)
@@ -182,7 +182,7 @@ struct r600_so_target {
        unsigned                so_index;
 };
 
-#define R600_CONTEXT_GPU_FLUSH                 (1 << 0)
+#define R600_CONTEXT_INVAL_READ_CACHES         (1 << 0)
 #define R600_CONTEXT_STREAMOUT_FLUSH           (1 << 1)
 #define R600_CONTEXT_WAIT_IDLE                 (1 << 2)
 #define R600_CONTEXT_FLUSH_AND_INV             (1 << 3)
index 486bc7acf765d7a54f20f4deff2dd93e8b9adee9..163917eeca0828c72fc559fa03c36389f59de0be 100644 (file)
@@ -650,7 +650,7 @@ void r600_flush_emit(struct r600_context *rctx)
                }
        }
 
-       if (rctx->flags & R600_CONTEXT_GPU_FLUSH) {
+       if (rctx->flags & R600_CONTEXT_INVAL_READ_CACHES) {
                cp_coher_cntl |= S_0085F0_VC_ACTION_ENA(1) |
                                S_0085F0_TC_ACTION_ENA(1) |
                                S_0085F0_FULL_CACHE_ENA(1);
index f8b64cc5d7b7002daa469e2768a0b2fa7b8e3024..bbcfc4f50623ff9ad15ede2279fe5b70bd39d6dd 100644 (file)
@@ -89,7 +89,7 @@ static void r600_texture_barrier(struct pipe_context *ctx)
        struct r600_context *rctx = (struct r600_context *)ctx;
 
        rctx->flags |= R600_CONTEXT_WAIT_IDLE;
-       rctx->flags |= R600_CONTEXT_GPU_FLUSH;
+       rctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
        rctx->flags |= R600_CONTEXT_FLUSH_AND_INV;
 }
 
@@ -488,7 +488,7 @@ static void r600_set_index_buffer(struct pipe_context *ctx,
 void r600_vertex_buffers_dirty(struct r600_context *rctx)
 {
        if (rctx->vertex_buffer_state.dirty_mask) {
-               rctx->flags |= R600_CONTEXT_GPU_FLUSH;
+               rctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
                rctx->vertex_buffer_state.atom.num_dw = (rctx->chip_class >= EVERGREEN ? 12 : 11) *
                                               util_bitcount(rctx->vertex_buffer_state.dirty_mask);
                rctx->vertex_buffer_state.atom.dirty = true;
@@ -544,7 +544,7 @@ void r600_sampler_views_dirty(struct r600_context *rctx,
                              struct r600_samplerview_state *state)
 {
        if (state->dirty_mask) {
-               rctx->flags |= R600_CONTEXT_GPU_FLUSH;
+               rctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
                state->atom.num_dw = (rctx->chip_class >= EVERGREEN ? 14 : 13) *
                                     util_bitcount(state->dirty_mask);
                state->atom.dirty = true;
@@ -886,7 +886,7 @@ static void r600_delete_vs_state(struct pipe_context *ctx, void *state)
 void r600_constant_buffers_dirty(struct r600_context *rctx, struct r600_constbuf_state *state)
 {
        if (state->dirty_mask) {
-               rctx->flags |= R600_CONTEXT_GPU_FLUSH;
+               rctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
                state->atom.num_dw = rctx->chip_class >= EVERGREEN ? util_bitcount(state->dirty_mask)*20
                                                                   : util_bitcount(state->dirty_mask)*19;
                state->atom.dirty = true;