[spv-out] Generated SPIR-V with duplicate OpName fails on Adreno drivers #1331
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: SPIR-V
Binary SPIR-V input and output
This one is fun! Apparently OpName is semantic, somehow, on Adreno drivers.
Adreno rejects this SPIR-V simply because the stage input
lighting
has the sameOpName
as the stage outputlighting
.Renaming the input
lighting
toin_lighting
resolves this issue, and aspirv-dis --raw-id
diff shows that the only difference is theOpName
for that field.However, the
pos
/pos
OpName
s do not cause an issue, indicating it's only a problem with non-builtin stage inputs and outputs. This example is also OK:The text was updated successfully, but these errors were encountered: