Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

kinc_g4_texture_init_*() vulkan errors #850

Open
sh-dave opened this issue Jan 31, 2024 · 3 comments
Open

kinc_g4_texture_init_*() vulkan errors #850

sh-dave opened this issue Jan 31, 2024 · 3 comments

Comments

@sh-dave
Copy link
Contributor

sh-dave commented Jan 31, 2024

Describe the bug
Using any of the kinc_g4_texture_init_*() functions on my debian 11 + vulkan machine will result in a vulkan error message (see below)

To Reproduce
Update Kinc in the Texture-Kinc and run.

Execution Environment:

  • Host system (where you compile your code): deb11
  • Target system (where you run your code): deb11
  • Kinc revision: bee05c3
  • Application output (if it runs):
Running with Vulkan validation layers enabled.
Chosen Vulkan device: Quadro K2200
Failed to find extension VK_KHR_format_feature_flags2

Vulkan ERROR: Code -1094930823 : Validation Error: [ VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251 ] Object 0: handle = 0x55555ad66c78, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xbebcae79 | vkCreateImage(): Format VK_FORMAT_R8G8B8A8_UNORM is not supported for this combination of parameters and VkGetPhysicalDeviceImageFormatProperties returned back VK_ERROR_FORMAT_NOT_SUPPORTED. The Vulkan spec states: Each of the following values (as described in Image Creation Limits) must not be undefined imageCreateMaxMipLevels, imageCreateMaxArrayLayers, imageCreateMaxExtent, and imageCreateSampleCounts (https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251)
@RobDangerous
Copy link
Member

My computer doesn't run into this problem (Windows/Vulkan/3080Ti) so I reverted the relevant change for now. But can you please check what VK_IMAGE_USAGE_STORAGE_BIT exactly caused the problem in Backends/Graphics5/Vulkan/.../texture.c.h?

@sh-dave
Copy link
Contributor Author

sh-dave commented Feb 5, 2024

Looks like cee6b0e is working. I reverted back to 3fa0f4e to get the error again, but I'm not quite sure what you're asking me to check. Here are some debug infos, hope that helps.

image

image

@RobDangerous
Copy link
Member

That's exactly what I wanted to know, thanks.

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

No branches or pull requests

2 participants