diff options
author | Iago Toral Quiroga <[email protected]> | 2017-03-03 10:58:23 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2017-03-16 11:40:05 +0100 |
commit | bad3a2e91183aeb50d86b3d8929d0a270f094dfb (patch) | |
tree | e1aa745315a08f3cbf938721f06cbf954fc4b17d /src | |
parent | e2f707ce5b569e40c2a3821149f87659553467f9 (diff) |
anv/blorp: return early if we failed to create the shader binary
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 26a9396b142..4342a0b51d8 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. */ |