radeonsi: remove r6xx_flush_and_inv atom
authorChristian König <deathsimple@vodafone.de>
Thu, 2 Aug 2012 12:52:55 +0000 (14:52 +0200)
committerChristian König <deathsimple@vodafone.de>
Sat, 11 Aug 2012 07:58:25 +0000 (09:58 +0200)
It is not used any more.

Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/drivers/radeonsi/r600_state_common.c
src/gallium/drivers/radeonsi/radeonsi_pipe.h

index ea12914931d33a382005ce7858f4643bd9e1e3c6..aa58406c8bed5b33a35b474ab1849487d79e990c 100644 (file)
@@ -49,13 +49,6 @@ static void r600_emit_surface_sync(struct r600_context *rctx, struct r600_atom *
        a->flush_flags = 0;
 }
 
-static void r600_emit_r6xx_flush_and_inv(struct r600_context *rctx, struct r600_atom *atom)
-{
-       struct radeon_winsys_cs *cs = rctx->cs;
-       cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE, 0, 0);
-       cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_CACHE_FLUSH_AND_INV_EVENT) | EVENT_INDEX(0);
-}
-
 static void r600_init_atom(struct r600_atom *atom,
                           void (*emit)(struct r600_context *ctx, struct r600_atom *state),
                           unsigned num_dw,
@@ -69,7 +62,6 @@ static void r600_init_atom(struct r600_atom *atom,
 void r600_init_common_atoms(struct r600_context *rctx)
 {
        r600_init_atom(&rctx->atom_surface_sync.atom,   r600_emit_surface_sync,         5, EMIT_EARLY);
-       r600_init_atom(&rctx->atom_r6xx_flush_and_inv,  r600_emit_r6xx_flush_and_inv,   2, EMIT_EARLY);
 }
 
 unsigned r600_get_cb_flush_flags(struct r600_context *rctx)
index ec2f79068779ed046bab9c7a3fac02a3baf16900..1cb16b673bcd76ee2a1a13ac4f51e04aeef4173f 100644 (file)
@@ -174,7 +174,6 @@ struct r600_context {
        /* States based on r600_state. */
        struct list_head                dirty_states;
        struct r600_atom_surface_sync   atom_surface_sync;
-       struct r600_atom                atom_r6xx_flush_and_inv;
 
        /* Below are variables from the old r600_context.
         */