Skip to content

spirv-val: Combine Image Coordinate checks#6494

Merged
alan-baker merged 2 commits into
KhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-image-coord
Jan 19, 2026
Merged

spirv-val: Combine Image Coordinate checks#6494
alan-baker merged 2 commits into
KhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-image-coord

Conversation

@spencer-lunarg

Copy link
Copy Markdown
Contributor

This originally came out of https://gitlab.khronos.org/spirv/SPIR-V/-/issues/905 where we found a driver that crashed passing it 16-bit floats as the coordinate

I tried to combine the logic and went through each type ... I am not sure why/if there is a difference between Vulkan/OpenCL with respect to allowing Float vs Int (but found 1 that we have active tests for https://gitlab.khronos.org/spirv/SPIR-V/-/issues/908) ... the other is OpImageRead/OpImageWrite, those were being validated incorrectly according to the spec

@spencer-lunarg

Copy link
Copy Markdown
Contributor Author

These are failing in the ConvertToHalfTest pass, which is what I was working on that prompt all of this... will get a fix in, likely pull in part of #6480

@alan-baker alan-baker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Validation ok, I'll leave opt review to @s-perron

Comment thread source/opt/convert_to_half_pass.cpp
@alan-baker
alan-baker requested a review from s-perron January 17, 2026 22:48
@alan-baker
alan-baker merged commit 8ac4c4f into KhronosGroup:main Jan 19, 2026
22 checks passed
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.

3 participants