From: Christian König Date: Thu, 2 Aug 2012 12:52:55 +0000 (+0200) Subject: radeonsi: remove r6xx_flush_and_inv atom X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7acb194a7bb4534674bccc351771915ea60d0869;p=mesa.git radeonsi: remove r6xx_flush_and_inv atom It is not used any more. Signed-off-by: Christian König --- diff --git a/src/gallium/drivers/radeonsi/r600_state_common.c b/src/gallium/drivers/radeonsi/r600_state_common.c index ea12914931d..aa58406c8be 100644 --- a/src/gallium/drivers/radeonsi/r600_state_common.c +++ b/src/gallium/drivers/radeonsi/r600_state_common.c @@ -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) diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.h b/src/gallium/drivers/radeonsi/radeonsi_pipe.h index ec2f7906877..1cb16b673bc 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.h +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.h @@ -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. */