Mesa (master): r600g: limit fs_write_all shader rebuild to eg+

Alex Deucher agd5f at kemper.freedesktop.org
Fri Jun 24 22:28:36 UTC 2011


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

Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Fri Jun 24 18:27:39 2011 -0400

r600g: limit fs_write_all shader rebuild to eg+

Signed-off-by: Alex Deucher <alexdeucher at gmail.com>

---

 src/gallium/drivers/r600/r600_state_common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index bf4e90e..d914040 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -600,7 +600,7 @@ void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
 		r600_shader_rebuild(ctx, rctx->vs_shader);
 
 	if ((rctx->ps_shader->shader.clamp_color != rctx->clamp_fragment_color) ||
-	    (rctx->ps_shader->shader.fs_write_all &&
+	    ((rctx->family >= CHIP_CEDAR) && rctx->ps_shader->shader.fs_write_all &&
 	     (rctx->ps_shader->shader.nr_cbufs != rctx->nr_cbufs)))
 		r600_shader_rebuild(ctx, rctx->ps_shader);
 




More information about the mesa-commit mailing list