Skip to content

Conversation

@cdavis5e
Copy link
Contributor

These are miscellaneous fixes for various issues that for some reason are all grouped together under shaderSPIRVAssemblyConformance.

Fixes five CTS tests.

Closes #2058.

It is possible to pass unsigned integers to `OpSMulExtended`. In that
case, we want to do a signed multiply with sign extension, so make sure
the operands are forced to be interpreted as signed.

This was an oversight on my part when I added these instructions.

Fixes the CTS test
`dEQP-VK.spirv_assembly.instruction.compute.signed_op.uint_smulextended`.
Fixes the CTS test
`dEQP-VK.spirv_assembly.instruction.compute.opundef.undefined_constant_composite`
and helps with another,
`dEQP-VK.spirv_assembly.instruction.compute.opundef.undefined_spec_constant_composite`.
Unfortunately, fixing the latter requires another change.
Undef values may be of struct type and may be used in constants.
Therefore, they must be interleaved with constants and types.

Fixes the rest of the Vulkan CTS test
`dEQP-VK.spirv_assembly.instruction.compute.opundef.undefined_spec_constant_composite`.

(Please excuse the churn in the reference output; it's an inevitable
result of this change.)
Fixes two more CTS tests under
`dEQP-VK.spirv_assembly.instruction.compute.empty_struct.copying`.
@cdavis5e cdavis5e force-pushed the msl-spirv-assembly-fixes branch from 8fee2a1 to 061cdd2 Compare November 20, 2022 10:08
Copy link
Contributor

@HansKristian-Work HansKristian-Work left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@HansKristian-Work HansKristian-Work merged commit 451ed10 into KhronosGroup:master Nov 21, 2022
CaseyHillers pushed a commit to CaseyHillers/engine that referenced this pull request Nov 22, 2022
* This call has been deprecated in the upstream dep
* KhronosGroup/SPIRV-Cross#2062
auto-submit bot pushed a commit to flutter/engine that referenced this pull request Nov 22, 2022
* This call has been deprecated in the upstream dep
* KhronosGroup/SPIRV-Cross#2062
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.

Fix shaderSPIRVAssemblyConformance failures in the Vulkan CTS

3 participants