anv: use anv_shader_bin_write_to_blob()'s return value

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Eric Engestrom 2019-02-20 11:09:46 +00:00 committed by Eric Engestrom
parent d3115f34a6
commit a16c398668
1 changed files with 1 additions and 3 deletions

View 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);