vc4: Don't abort when a shader compile fails.
[mesa.git] / src / gallium / drivers / vc4 / vc4_draw.c
index 61c58424cdf2a90f3415b1080133810533ac64d9..c5afc0cdae118eb57bfa71aa841c9a676b624cbb 100644 (file)
@@ -307,7 +307,10 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
         }
 
         vc4_start_draw(vc4);
-        vc4_update_compiled_shaders(vc4, info->mode);
+        if (!vc4_update_compiled_shaders(vc4, info->mode)) {
+                debug_warn_once("shader compile failed, skipping draw call.\n");
+                return;
+        }
 
         vc4_emit_state(pctx);