summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.c
diff options
context:
space:
mode:
authorDarren Powell <[email protected]>2014-03-31 18:00:28 -0400
committerTom Stellard <[email protected]>2014-04-17 19:37:58 -0400
commitbc86690f137a71a6f1cdcc0393a4b3f181df7240 (patch)
tree00fcb3e0adebc68d28e7328d5752fae3a8690c90 /src/gallium/drivers/radeonsi/si_state.c
parent9f9ab8ec0dd9739e90de5aa5b8434d105d351f31 (diff)
radeonsi: Added Diag Handler to receive LLVM Error messages
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index d81354ebe8d..ab9c4cc2834 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -2208,9 +2208,11 @@ static void si_bind_ps_shader(struct pipe_context *ctx, void *state)
struct si_context *sctx = (struct si_context *)ctx;
struct si_pipe_shader_selector *sel = state;
+ /* skip if supplied shader is one already in use */
if (sctx->ps_shader == sel)
return;
+ /* use dummy shader if supplied shader is corrupt */
if (!sel || !sel->current)
sel = sctx->dummy_pixel_shader;