mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-12-03 13:13:02 +00:00
anv: fix assert to build with shader cache disabled
When setting -Dshader-cache=disabled the build fails due
no member named 'disk_cache' in 'struct anv_physical_device'
Signed-off-by: sjfricke <spencerfricke@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Fixes: 7f1e8230
("anv: Switch to the new common pipeline cache")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18181>
(cherry picked from commit c49e328e4f41d4a2503045a0bb8bfaf65d4cde61)
This commit is contained in:
parent
bb48242766
commit
f3c5c6230f
@ -11956,7 +11956,7 @@
|
||||
"description": "anv: fix assert to build with shader cache disabled",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "7f1e82306c9b59fe534b9712d85f9324b0bfb5a4"
|
||||
},
|
||||
|
@ -606,7 +606,7 @@ anv_physical_device_free_disk_cache(struct anv_physical_device *device)
|
||||
device->vk.disk_cache = NULL;
|
||||
}
|
||||
#else
|
||||
assert(device->disk_cache == NULL);
|
||||
assert(device->vk.disk_cache == NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user