Mesa (master): radeonsi: Don't always re-compile shaders after they' re bound.
Michel Dänzer
daenzer at kemper.freedesktop.org
Tue Jun 12 18:19:41 UTC 2012
Module: Mesa
Branch: master
Commit: 1657dec72d6dcb6158bb65cea2e1b6ff2445746c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1657dec72d6dcb6158bb65cea2e1b6ff2445746c
Author: Michel Dänzer <michel.daenzer at amd.com>
Date: Tue Jun 12 20:18:24 2012 +0200
radeonsi: Don't always re-compile shaders after they're bound.
---
src/gallium/drivers/radeonsi/r600_state_common.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/r600_state_common.c b/src/gallium/drivers/radeonsi/r600_state_common.c
index 697dc30..05b7946 100644
--- a/src/gallium/drivers/radeonsi/r600_state_common.c
+++ b/src/gallium/drivers/radeonsi/r600_state_common.c
@@ -666,12 +666,7 @@ static void si_update_derived_state(struct r600_context *rctx)
r600_flush_depth_textures(rctx);
}
- if (rctx->shader_dirty) {
- si_pipe_shader_destroy(&rctx->context, rctx->vs_shader);
- }
-
- if (rctx->shader_dirty ||
- (rctx->ps_shader->shader.fs_write_all &&
+ if ((rctx->ps_shader->shader.fs_write_all &&
(rctx->ps_shader->shader.nr_cbufs != rctx->nr_cbufs)) ||
(rctx->sprite_coord_enable &&
(rctx->ps_shader->sprite_coord_enable != rctx->sprite_coord_enable))) {
More information about the mesa-commit
mailing list