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:
Yiwei Zhang 2025-02-24 23:55:07 -08:00 committed by Marge Bot
parent 15777727c9
commit fde5cebec5

View file

@ -2246,6 +2246,9 @@ vn_image_get_image_format_key(
_mesa_sha1_update(&sha1_ctx, &src->sType, _mesa_sha1_update(&sha1_ctx, &src->sType,
sizeof(VkStructureType)); sizeof(VkStructureType));
break; break;
case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_USAGE_ANDROID:
/* no need to update cache key since handled outside the cache */
break;
default: default:
physical_dev->image_format_cache.debug.cache_skip_count++; physical_dev->image_format_cache.debug.cache_skip_count++;
return false; return false;