From 518d8341627ac80f8757fd09cc3cd5c2884f58e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 24 Mar 2017 00:17:23 +0100 Subject: [PATCH] radeonsi: don't hang on shader compile failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Cc: 17.0 Reviewed-by: Samuel Pitoiset Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state_shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 30856b08ac5..e1286b89333 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -1246,7 +1246,7 @@ again: memcmp(¤t->key, key, sizeof(*key)) == 0 && (!current->is_optimized || util_queue_fence_is_signalled(¤t->optimized_ready)))) - return 0; + return current->compilation_failed ? -1 : 0; /* This must be done before the mutex is locked, because async GS * compilation calls this function too, and therefore must enter -- 2.30.2