From a16c398668cb2759748e57b2278a1df17d7ab8ce Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 20 Feb 2019 11:09:46 +0000 Subject: [PATCH] anv: use anv_shader_bin_write_to_blob()'s return value Signed-off-by: Eric Engestrom Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_pipeline_cache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.30.2