From: Michel Dänzer Date: Tue, 12 Jun 2012 18:18:24 +0000 (+0200) Subject: radeonsi: Don't always re-compile shaders after they're bound. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1657dec72d6dcb6158bb65cea2e1b6ff2445746c;p=mesa.git radeonsi: Don't always re-compile shaders after they're bound. --- diff --git a/src/gallium/drivers/radeonsi/r600_state_common.c b/src/gallium/drivers/radeonsi/r600_state_common.c index 697dc30b287..05b7946512f 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))) {