diff options
author | Eric Engestrom <[email protected]> | 2019-02-20 11:09:46 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-20 16:40:13 +0000 |
commit | a16c398668cb2759748e57b2278a1df17d7ab8ce (patch) | |
tree | a671c8670a14d6fb9073095d634fd0238e54a7fa /src/intel/vulkan/anv_pipeline_cache.c | |
parent | d3115f34a6dbd34bbc25fd9d9bd28ecc74863083 (diff) |
anv: use anv_shader_bin_write_to_blob()'s return value
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline_cache.c')
-rw-r--r-- | src/intel/vulkan/anv_pipeline_cache.c | 4 |
1 files changed, 1 insertions, 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); |