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] Invalid OpCopyLogical with identical operand and result types #9083
Description
Compiling a shader that copies a struct or array from a constant buffer into an RWStructuredBuffer can produce invalid SPIR-V when targeting SPIR-V 1.4 or later. This regressed in #7530: DXC emits OpCopyLogical to convert between buffer layouts, but when those layouts coincide, type lowering can deduplicate the source and destination into the same SPIR-V type. OpCopyLogical requires distinct operand and result types, so validation fails with “Result Type must not equal the Operand type.” The fix emits OpCopyObject when the final type IDs match, retaining OpCopyLogical when they differ.
Activity
akhil9tiet commentedon Oct 29, 2026
I'd like to work on this — please assign it to me.
SteveUrquhart commentedon Oct 29, 2026
I have a PR that I plan to open momentarily.