radeonsi: fix shader binding

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
Christian König 2012-07-25 22:39:15 +02:00
parent f18fd255cf
commit 1fb8ee62fa
1 changed files with 8 additions and 2 deletions

View File

@ -1649,7 +1649,10 @@ static void si_bind_vs_shader(struct pipe_context *ctx, void *state)
rctx->shader_dirty = true;
rctx->vs_shader = shader;
si_pm4_bind_state(rctx, vs, shader->pm4);
if (shader) {
si_pm4_bind_state(rctx, vs, shader->pm4);
}
}
static void si_bind_ps_shader(struct pipe_context *ctx, void *state)
@ -1662,7 +1665,10 @@ static void si_bind_ps_shader(struct pipe_context *ctx, void *state)
rctx->shader_dirty = true;
rctx->ps_shader = shader;
si_pm4_bind_state(rctx, ps, shader->pm4);
if (shader) {
si_pm4_bind_state(rctx, ps, shader->pm4);
}
}
static void si_delete_vs_shader(struct pipe_context *ctx, void *state)