Mesa (master): r600g: don' t invalidate texture caches when setting sampler states

Marek Olšák mareko at kemper.freedesktop.org
Tue Jul 17 19:56:19 UTC 2012


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sat Jul 14 16:36:51 2012 +0200

r600g: don't invalidate texture caches when setting sampler states

Changing sampler states doesn't change resource bindings.

---

 src/gallium/drivers/r600/evergreen_state.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index 5885aec..11cd329 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -1120,9 +1120,6 @@ static void evergreen_bind_ps_sampler(struct pipe_context *ctx, unsigned count,
 	struct r600_context *rctx = (struct r600_context *)ctx;
 	struct r600_pipe_state **rstates = (struct r600_pipe_state **)states;
 
-	if (count)
-		r600_inval_texture_cache(rctx);
-
 	memcpy(rctx->ps_samplers.samplers, states, sizeof(void*) * count);
 	rctx->ps_samplers.n_samplers = count;
 
@@ -1136,9 +1133,6 @@ static void evergreen_bind_vs_sampler(struct pipe_context *ctx, unsigned count,
 	struct r600_context *rctx = (struct r600_context *)ctx;
 	struct r600_pipe_state **rstates = (struct r600_pipe_state **)states;
 
-	if (count)
-		r600_inval_texture_cache(rctx);
-
 	for (int i = 0; i < count; i++) {
 		evergreen_context_pipe_state_set_vs_sampler(rctx, rstates[i], i);
 	}




More information about the mesa-commit mailing list