radeonsi: Remove si_pm4_inval_vertex_cache()
authorTom Stellard <thomas.stellard@amd.com>
Wed, 13 Mar 2013 17:01:32 +0000 (13:01 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 5 Apr 2013 22:43:34 +0000 (18:43 -0400)
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 <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com
src/gallium/drivers/radeonsi/radeonsi_pm4.c
src/gallium/drivers/radeonsi/radeonsi_pm4.h
src/gallium/drivers/radeonsi/si_state_draw.c

index 8e01738253ee9fb429d14f457d51b4589fb6716f..e7441fed82a201ca63274a75234fce265ec4fd37 100644 (file)
@@ -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);
index 2ad62d614ee9a2fa1ced3a9f9b34dad6c6756f51..bdeb93088080877fb6d42339fac54e35932a3051 100644 (file)
@@ -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);
 
index a90a5dab06533646ff750752784d25a94eda9425..8d169079f4b269508f85652b9b7022b437380db6 100644 (file)
@@ -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;