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

Descriptor set matching errors for (image, sampler) / combined-image-sampler mismatches #385

Closed
gnl21 opened this issue Oct 9, 2018 · 2 comments
Assignees
Labels
Bug Something isn't working
Milestone

Comments

@gnl21
Copy link
Contributor

gnl21 commented Oct 9, 2018

The CTS (dEQP-VK.spirv_assembly.instruction.graphics.image_sampler.imagefetch.combined_image_sampler_separate_descriptors.pass_sampler_to_function.shader_frag) uses both an image and a sampler variable pointed to the same combined-image-sampler descriptor. This seems to be allowed but produces validation errors of the form:

Descriptor set 0x12a2394 bound as set #0 encountered the following validation error at vkCmdDraw() time: Descriptor in binding #0 at global descriptor index 0 requires (none) component type, but bound descriptor format is VK_FORMAT_R32G32B32A32_SFLOAT.

The code is getting req = 0 (presumably because the image part of the binding is unused?) but this generates the format mismatch with the image that is actually bound.

@jzulauf-lunarg jzulauf-lunarg added the Bug Something isn't working label Oct 10, 2018
@chrisforbes
Copy link
Contributor

This is going to require some work in shader validation to get the edge cases right. @mark-lunarg do you want it, or shall I take it?

@locke-lunarg
Copy link
Contributor

fixed in PR #1148

@shannon-lunarg shannon-lunarg added this to the sdk-1.1.121.0 milestone Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants