Skip to content

Conversation

@leegao
Copy link
Owner

@leegao leegao commented Aug 14, 2025

VVL:

Validation Error: [ VUID-VkImageCreateInfo-pNext-02398 ] | MessageID = 0xc94b7919
vkCreateImage(): pCreateInfo->pNext<VkExternalFormatANDROID>.externalFormat (40) is non-zero, but layout is VK_IMAGE_TILING_LINEAR.
The Vulkan spec states: If the pNext chain includes a VkExternalFormatANDROID structure whose externalFormat member is not 0, tiling must be VK_IMAGE_TILING_OPTIMAL (https://docs.vulkan.org/spec/latest/chapters/resources.html#VUID-VkImageCreateInfo-pNext-02398)

Fix:

   if (external_format.externalFormat != 0) {
      image_info.format = VK_FORMAT_UNDEFINED;
      image_info.tiling = VK_IMAGE_TILING_OPTIMAL;
      image_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT;
   }

Fixes #133

@leegao leegao merged commit ad7424b into wrapper Aug 14, 2025
0 of 2 checks passed
@leegao leegao deleted the debug-ahmed2 branch August 14, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Validation] vvl crashing on Pixel 8 in dispatch->CreateImage

2 participants