gallium/radeon: remove 'dirty' member from r600_atom
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 2 Sep 2015 22:54:32 +0000 (01:54 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 3 Sep 2015 16:06:51 +0000 (18:06 +0200)
It's no longer used by both r600 and radeonsi now.

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state_common.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeonsi/si_state.c

index 76539d6..25df831 100644 (file)
@@ -514,8 +514,6 @@ static inline void r600_set_atom_dirty(struct r600_context *rctx,
 {
        uint64_t mask;
 
-       atom->dirty = dirty;
-
        assert(atom->id != 0);
        assert(atom->id < sizeof(mask) * 8);
        mask = 1ull << atom->id;
index 39c65ae..ae13411 100644 (file)
@@ -56,7 +56,6 @@ void r600_add_atom(struct r600_context *rctx,
        assert(rctx->atoms[id] == NULL);
        rctx->atoms[id] = atom;
        atom->id = id;
-       atom->dirty = false;
 }
 
 void r600_init_atom(struct r600_context *rctx,
index d22c230..534b987 100644 (file)
@@ -316,8 +316,7 @@ struct r600_common_screen {
 struct r600_atom {
        void (*emit)(struct r600_common_context *ctx, struct r600_atom *state);
        unsigned                num_dw;
-       unsigned short          id;     /* used by r600 only */
-       bool                    dirty;
+       unsigned short          id;
 };
 
 struct r600_so_target {
index 1e2f32a..f698c59 100644 (file)
@@ -50,7 +50,6 @@ void si_init_atom(struct si_context *sctx, struct r600_atom *atom,
                  void (*emit_func)(struct si_context *ctx, struct r600_atom *state))
 {
        atom->emit = (void*)emit_func;
-       atom->dirty = false;
        atom->id = list_elem - sctx->atoms.array + 1; /* index+1 in the atom array */
        *list_elem = atom;
 }