From: Rob Clark Date: Wed, 13 Jun 2018 16:46:17 +0000 (-0400) Subject: freedreno/a5xx: don't crash if compute shader compile fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a41b02d466a72e380e9b81a9ab4b003590623f0;p=mesa.git 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 --- 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);