summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-06-13 12:46:17 -0400
committerRob Clark <[email protected]>2018-06-19 13:02:28 -0400
commit4a41b02d466a72e380e9b81a9ab4b003590623f0 (patch)
tree82a070e8676d6bd691a8dd16c464e68d220d1573 /src/gallium/drivers/freedreno
parent658f1f6003e8adc6129370e8ed7582fdbdd31291 (diff)
freedreno/a5xx: don't crash if compute shader compile fails
It is impolite, and a bit annoying with dEQP (all tests running in single process). Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_compute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_compute.c b/src/gallium/drivers/freedreno/a5xx/fd5_compute.c
index 8f3847ea843..c98442efba6 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_compute.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_compute.c
@@ -181,6 +181,8 @@ fd5_launch_grid(struct fd_context *ctx, const struct pipe_grid_info *info)
emit_setup(ctx);
v = ir3_shader_variant(so->shader, key, &ctx->debug);
+ if (!v)
+ return;
if (ctx->dirty_shader[PIPE_SHADER_COMPUTE] & FD_DIRTY_SHADER_PROG)
cs_program_emit(ring, v, info);