You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] Verify behavior of GetAttributeAtVertex #6383
Actual Behavior
Once #6041 is merged, the above sample will successfully compile for both DXIL and SPIR-V, however, as Nathan Gauër (@Keenuts) mentioned:
DXIL seems to only call the intrinsic for tmp1 and tmp2, but tmp3 gets loaded as usual, but with an undefined vertex index. While for SPIR-V, we default to the index 0.
Expected Behavior
We should determine whether this behavior is well-defined for DXIL then verify that that SPIR-V backend implementation is matches.
Gregory Roth (@pow2clk) If calling GetAttributeAtVertex outside the main entrypoint function is illegal, adding a check and error messaging for that would resolve a lot of our issues, but we didn't find any docs explicitly stating that. It looks like the compiler allows it (with various degrees of functionality) for both DXIL and SPIR-V right now.
Activity
pow2clk commentedon Mar 5, 2024
I'm surprised we don't see errors for this since it's calling GetAttributeAtVertex from a subfunction.
sudonatalie commentedon Mar 5, 2024
Gregory Roth (@pow2clk) If calling
GetAttributeAtVertexoutside the main entrypoint function is illegal, adding a check and error messaging for that would resolve a lot of our issues, but we didn't find any docs explicitly stating that. It looks like the compiler allows it (with various degrees of functionality) for both DXIL and SPIR-V right now.[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
sudonatalie commentedon Mar 26, 2024
Related: microsoft/hlsl-specs#181
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
[SPIR-V][Sema] Requires nointerpolation on GetAttributeAtVertex param…
Keenuts commentedon Apr 3, 2024
This is now fixed (27b87b7)