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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user