From: Iago Toral Quiroga Date: Fri, 3 Mar 2017 09:58:23 +0000 (+0100) Subject: anv/blorp: return early if we failed to create the shader binary X-Git-Tag: upstream/17.1.0~1332 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bad3a2e91183aeb50d86b3d8929d0a270f094dfb;p=platform%2Fupstream%2Fmesa.git anv/blorp: return early if we failed to create the shader binary Reviewed-by: Topi Pohjolainen --- diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 26a9396..4342a0b 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 false; + /* The cache already has a reference and it's not going anywhere so there * is no need to hold a second reference. */