[Mesa-dev] [PATCH 06/16] anv/blorp: return early if we failed to create the shader binary

Iago Toral Quiroga itoral at igalia.com
Tue Mar 7 07:15:51 UTC 2017


---
 src/intel/vulkan/anv_blorp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
index d79c5e0..c871f03 100644
--- a/src/intel/vulkan/anv_blorp.c
+++ b/src/intel/vulkan/anv_blorp.c
@@ -72,6 +72,9 @@ upload_blorp_shader(struct blorp_context *blorp,
                                        key, key_size, kernel, kernel_size,
                                        prog_data, prog_data_size, &bind_map);
 
+   if (!bin)
+      return;
+
    /* The cache already has a reference and it's not going anywhere so there
     * is no need to hold a second reference.
     */
-- 
2.7.4



More information about the mesa-dev mailing list