Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

i.MX8: image_format_properties_unchecked returns None #2192

Closed
Fighter19 opened this issue Apr 24, 2023 · 0 comments · Fixed by #2193
Closed

i.MX8: image_format_properties_unchecked returns None #2192

Fighter19 opened this issue Apr 24, 2023 · 0 comments · Fixed by #2193

Comments

@Fighter19
Copy link
Contributor

  • Version of vulkano: c6a6a7f
  • OS: Linux (tdx-xwayland-glibc-x86_64-Reference-Multimedia-Image-cortexa35-colibri-imx8x-6.2.0)
  • GPU (the selected PhysicalDevice): Vivante GC7000L (NXP i.MX8 GPU)
GPU0:
VkPhysicalDeviceProperties:
---------------------------
        apiVersion        = 4202496 (1.2.0)
        driverVersion     = 25182211 (0x1804003)
        vendorID          = 0x10002
        deviceID          = 0x70006214
        deviceType        = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName        = VeriSilicon 
        pipelineCacheUUID = 14620070-7d09-47bb-b5d1-0ac5c5b13c85

  • GPU Driver: V6.4.3.p4.398061 (Vulkan Instance Version: 1.2.182)
  • Upload of a reasonably minimal complete main.rs file that demonstrates the issue: see triangle example

Issue

The triangle example doesn't work as image_format_properties_unchecked returns None, because "vkGetPhysicalDeviceImageFormatProperties2KHR(): Returned error VK_ERROR_FORMAT_NOT_SUPPORTED."

I assume this is caused due to the change b968451, which appears that it would have has_seperate_stencil_usage evaluate to false, while it seems it would evaluate to true now (see physical.rs in b958451#diff-5f03afc2104ee2633b0acea54a2cc12d07e4a4a626e820fb3b3fc8ff93ef64d0L1006).
Manually setting has_seperate_stencil_usage to false using a debugger, will make the call succeed.

See log including validation layer output here:
error.log
(src/main.rs corresponds to examples/src/bin/triangle.rs)

Fighter19 added a commit to Fighter19/vulkano that referenced this issue Apr 24, 2023
Fighter19 added a commit to Fighter19/vulkano that referenced this issue Apr 24, 2023
@marc0246 marc0246 linked a pull request Apr 24, 2023 that will close this issue
5 tasks
Fighter19 added a commit to Fighter19/vulkano that referenced this issue Apr 25, 2023
Fix crash on Vivante GPU (vulkano-rs#2192) by properly
determining when to include seperate stencil usage.
@Rua Rua closed this as completed in #2193 Apr 25, 2023
Rua pushed a commit that referenced this issue Apr 25, 2023
Fix crash on Vivante GPU (#2192) by properly
determining when to include seperate stencil usage.
hakolao pushed a commit to hakolao/vulkano that referenced this issue Feb 20, 2024
Fix crash on Vivante GPU (vulkano-rs#2192) by properly
determining when to include seperate stencil usage.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant