Skip to content

[SPIRV] Simplify looking for input storage class - #6968

Merged
Steven Perron (s-perron) merged 1 commit into
microsoft:mainfrom
s-perron:i6959
Oct 21, 2024
Merged

Steven Perron (s-perron) merged 1 commit into
microsoft:mainfrom
s-perron:i6959

Conversation

@s-perron

Copy link
Copy Markdown
Collaborator

The function DeclResultIdMapper::isInputStorageClass tries to
determine the storage class for the stage variable by looking at its
SigPoint. This does not always work.

This change simply looks at the storage class that is already associated
with the variable, which should have been set when the StageVar was
created.

Fixes #6959

The function `DeclResultIdMapper::isInputStorageClass` tries to
determine the storage class for the stage variable by looking at its
SigPoint. This does not always work.

This change simply looks at the storage class that is already associated
with the variable, which should have been set when the StageVar was
created.

Fixes microsoft#6959
@s-perron
Steven Perron (s-perron) merged commit db90a46 into microsoft:main Oct 21, 2024
Mxr (SjMxr233) pushed a commit to ShaderHelper/DirectXShaderCompiler that referenced this pull request Jul 24, 2025
The function `DeclResultIdMapper::isInputStorageClass` tries to
determine the storage class for the stage variable by looking at its
SigPoint. This does not always work.

This change simply looks at the storage class that is already associated
with the variable, which should have been set when the StageVar was
created.

Fixes microsoft#6959
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[SPIR-V] DXC crashes with lib_x_x target profile and SPIR-V input/output variables

3 participants