anv: use anv_shader_bin_write_to_blob()'s return value
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 20 Feb 2019 11:09:46 +0000 (11:09 +0000)
committerEric Engestrom <eric@engestrom.ch>
Wed, 20 Feb 2019 16:40:13 +0000 (16:40 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_pipeline_cache.c

index 5c6dc58f24d310e30ec294474f8b16a493a1737c..ad1bcf0940fcdeb43d5b4bb57faf03b1a80e66c0 100644 (file)
@@ -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);