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

OpSampledImage extra validation #5695

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

alan-baker
Copy link
Contributor

  • Validate that the type of Image operand matches the result type's Image operand

* Validate that the type of Image operand matches the result type's
  Image operand
@alan-baker alan-baker requested review from dneto0 and s-perron May 31, 2024 18:43
Copy link
Collaborator

@dneto0 dneto0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice. Thanks.

@alan-baker
Copy link
Contributor Author

Smoketests fail because glslang's HLSL compilation emits inconsistent image types for the sample operation. DXC for example sets the Depth operand to 2, but glslang emits 0 or 1 (at def and use respectively).

@alan-baker alan-baker merged commit 70ad4da into KhronosGroup:main Jun 3, 2024
23 of 24 checks passed
@alan-baker alan-baker deleted the sampled-image-val branch June 3, 2024 14:43
alan-baker added a commit that referenced this pull request Sep 4, 2024
alan-baker added a commit that referenced this pull request Sep 4, 2024
This reverts commit 70ad4da.

Contributes to #5781

SPIR WG 2024-09-04: decision to relax validation requirement in the spec.
Keenuts pushed a commit to Keenuts/SPIRV-Tools that referenced this pull request Nov 12, 2024
…Group#5785)

This reverts commit 70ad4da.

Contributes to KhronosGroup#5781

SPIR WG 2024-09-04: decision to relax validation requirement in the spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants