summaryrefslogtreecommitdiffstats
path: root/tests/language-feature/zero-initialize
diff options
context:
space:
mode:
authorJulius Ikkala <julius.ikkala@gmail.com>2025-10-09 02:13:27 +0300
committerGitHub <noreply@github.com>2025-10-08 23:13:27 +0000
commit1e4265edd4ec4c44e3d8f209fca802727076aa46 (patch)
tree811e872cfa374e1a3859d940431f687f628814db /tests/language-feature/zero-initialize
parent54d9b345bff4b01949e875366cb1e7cf1c021c61 (diff)
Allow 1D SV_DispatchThreadID in CPU targets (#8612)
The varying param legalization pass didn't deal with this 1D form of SV_DispatchThreadID for CPU targets: ```slang void computeMain(int i : SV_DispatchThreadID) ``` Instead, it just overrode the type of `i` with a `uint3`, breaking lots of code that attempted to use `i` for something, like a `switch` statement for example. I ran across this when going through `language-feature` tests for the LLVM target, which will also use this legalization pass. I'm separately submitting this now because this also fixes the existing CPU target. The test I enable in this PR is one that was previously generating broken code on CPU. (somewhat related issue: #7468)
Diffstat (limited to 'tests/language-feature/zero-initialize')
0 files changed, 0 insertions, 0 deletions