mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
venus: fix image format cache miss with AHB usage query
should skip updating cache key instead of marking as a miss
Fixes: e48645250c ("venus: image format properties cache")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33757>
This commit is contained in:
parent
15777727c9
commit
fde5cebec5
1 changed files with 3 additions and 0 deletions
|
|
@ -2246,6 +2246,9 @@ vn_image_get_image_format_key(
|
|||
_mesa_sha1_update(&sha1_ctx, &src->sType,
|
||||
sizeof(VkStructureType));
|
||||
break;
|
||||
case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_USAGE_ANDROID:
|
||||
/* no need to update cache key since handled outside the cache */
|
||||
break;
|
||||
default:
|
||||
physical_dev->image_format_cache.debug.cache_skip_count++;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue