From: Eric Engestrom Date: Wed, 20 Feb 2019 11:09:46 +0000 (+0000) Subject: anv: use anv_shader_bin_write_to_blob()'s return value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a16c398668cb2759748e57b2278a1df17d7ab8ce;p=mesa.git anv: use anv_shader_bin_write_to_blob()'s return value Signed-off-by: Eric Engestrom Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index 5c6dc58f24d..ad1bcf0940f 100644 --- a/src/intel/vulkan/anv_pipeline_cache.c +++ b/src/intel/vulkan/anv_pipeline_cache.c @@ -683,9 +683,7 @@ anv_device_upload_kernel(struct anv_device *device, if (disk_cache) { struct blob binary; blob_init(&binary); - anv_shader_bin_write_to_blob(bin, &binary); - - if (!binary.out_of_memory) { + if (anv_shader_bin_write_to_blob(bin, &binary)) { cache_key cache_key; disk_cache_compute_key(disk_cache, key_data, key_size, cache_key);