Module: Mesa
Branch: master
Commit: 0ccf82c557b516c446b4caeed723f260927e075b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ccf82c557b516c446b4caeed723f260927e075b

Author: Tom Stellard <[email protected]>
Date:   Wed Mar 13 13:01:32 2013 -0400

radeonsi: Remove si_pm4_inval_vertex_cache()

This function is a holdover from r600g and is identical to
si_pm4_inval_texture_cache(), so it is not needed.

Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]

---

 src/gallium/drivers/radeonsi/radeonsi_pm4.c  |    6 ------
 src/gallium/drivers/radeonsi/radeonsi_pm4.h  |    1 -
 src/gallium/drivers/radeonsi/si_state_draw.c |    2 +-
 3 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/radeonsi_pm4.c 
b/src/gallium/drivers/radeonsi/radeonsi_pm4.c
index 8e01738..e7441fe 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_pm4.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_pm4.c
@@ -139,12 +139,6 @@ void si_pm4_inval_texture_cache(struct si_pm4_state *state)
        state->cp_coher_cntl |= S_0085F0_TC_ACTION_ENA(1);
 }
 
-void si_pm4_inval_vertex_cache(struct si_pm4_state *state)
-{
-        /* Some GPUs don't have the vertex cache and must use the texture 
cache instead. */
-       state->cp_coher_cntl |= S_0085F0_TC_ACTION_ENA(1);
-}
-
 void si_pm4_inval_fb_cache(struct si_pm4_state *state, unsigned nr_cbufs)
 {
        state->cp_coher_cntl |= S_0085F0_CB_ACTION_ENA(1);
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pm4.h 
b/src/gallium/drivers/radeonsi/radeonsi_pm4.h
index 2ad62d6..bdeb930 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_pm4.h
+++ b/src/gallium/drivers/radeonsi/radeonsi_pm4.h
@@ -75,7 +75,6 @@ void si_pm4_sh_data_end(struct si_pm4_state *state, unsigned 
base, unsigned idx)
 
 void si_pm4_inval_shader_cache(struct si_pm4_state *state);
 void si_pm4_inval_texture_cache(struct si_pm4_state *state);
-void si_pm4_inval_vertex_cache(struct si_pm4_state *state);
 void si_pm4_inval_fb_cache(struct si_pm4_state *state, unsigned nr_cbufs);
 void si_pm4_inval_zsbuf_cache(struct si_pm4_state *state);
 
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c 
b/src/gallium/drivers/radeonsi/si_state_draw.c
index a90a5da..8d16907 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -430,7 +430,7 @@ static void si_vertex_buffer_update(struct r600_context 
*rctx)
        unsigned i, count;
        uint64_t va;
 
-       si_pm4_inval_vertex_cache(pm4);
+       si_pm4_inval_texture_cache(pm4);
 
        /* bind vertex buffer once */
        count = rctx->vertex_elements->count;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to