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

[SPIR-V] Fatal error in compilation when using nointerpolation modifier #5326

Closed
Mr-Wiseguy opened this issue Jun 26, 2023 · 1 comment
Closed
Labels
bug Bug, regression, crash spirv Work related to SPIR-V

Comments

@Mr-Wiseguy
Copy link

The following code fails to compile when emitting SPIR-V, but compiles fine when emitting DXIL:

void PSMain(nointerpolation in float4 flatColor : COLOR0, out float4 resultColor : SV_TARGET)
{
    resultColor = flatColor;
}

The error is as follows:

fatal error: generated SPIR-V is invalid: OpStore Pointer <id> '3[%out_var_SV_TARGET]'s type does not match Object <id> '14[%14]'s type.
  OpStore %out_var_SV_TARGET %14
@s-perron s-perron added bug Bug, regression, crash spirv Work related to SPIR-V labels Jun 27, 2023
@s-perron
Copy link
Collaborator

Duplicate of #5270.

s-perron pushed a commit that referenced this issue Jul 4, 2023
…entric (SV_Barycentrics)" (#5384)

Reverts #4638
This PR causes multiples issues (#5326, #5342, #5270). Reverting, will
need more testing.

Fixed #5270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash spirv Work related to SPIR-V
Projects
None yet
Development

No branches or pull requests

2 participants