r600g: limit fs_write_all shader rebuild to eg+
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 24 Jun 2011 22:27:39 +0000 (18:27 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 24 Jun 2011 22:27:39 +0000 (18:27 -0400)
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/drivers/r600/r600_state_common.c

index bf4e90ecb2fc0c52576611f9cc14c880a608d0d1..d9140403e5a52a8e76b2462715dba146698cfe26 100644 (file)
@@ -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);