mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
anv/blorp: return early if we failed to create the shader binary
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
e2f707ce5b
commit
bad3a2e911
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue