Skip to content

test new coherent ptr backend based on frontend rewrite - #70

Open
ArielG-NV wants to merge 94 commits into
masterfrom
coherent-ptr-backend
Open

test new coherent ptr backend based on frontend rewrite#70
ArielG-NV wants to merge 94 commits into
masterfrom
coherent-ptr-backend

Conversation

@ArielG-NV

Copy link
Copy Markdown
Owner

No description provided.

ArielG-NV and others added 30 commits July 21, 2025 08:33
ArielG-NV and others added 30 commits August 27, 2025 16:21
Emits the appropriate OpCapability for 8- and 16-bit type usage:
- UniformAndStorageBuffer8BitAccess: for 16-bit types in
SpvStorageClassUniform and SpvStorageClassStorageBuffer
- UniformAndStorageBuffer16BitAccess: for 16-bit types in
SpvStorageClassUniform and SpvStorageClassStorageBuffer
- StoragePushConstant8: for 8-bit types in SpvStorageClassPushConstant
- StoragePushConstant16: for 16-bit types in SpvStorageClassPushConstant
- StorageInputOutput16: for 16-bit types in SpvStorageClassInput and
SpvStorageClassOutput

Generated with Claude Code, with revisions.

Fixes shader-slang#7879.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: James Helferty (NVIDIA) <jhelferty-nv@users.noreply.github.com>
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Update docs/shader-execution-reordering.md with additional intrinsics
Add correct capability `LoadLocalRootTableConstant`
…er-slang#8305)

When `SIMPLE` type test is used with `-g[1-3]` option, the filecheck
pattern will most likely to match to the string itself on the embedded
source code rather than match to the emitted spirv-asm code.

This commit avoids the problem by removing the embedded source code.

This commit also provides an option to keep the embedded source code,
`-preserve-embedded-source`.

The source code removal is happening in two steps:
1. iterate all output lines and find SPIRV-ASM in the following pattern:
`%N = OpExtInst %void %M DebugSource %fileId %sourceId`. And then, store
the "%sourceId" value to identify which SPIRV instructions are for the
embedded source code.
2. iterate all output lines again to find the `%sourceId = OpString
"...."` and replace the whole string with the following string, ``` %1 =
OpString "// slang-test removed the embedded source // Use
`-preserve-embedded-source` to keep it explicitly " ```

This change revealed problems in the existing tests:
- tests/bugs/spirv-debug-info.slang : The expected text was missing and
it had to be added. The file also had Carrage-Return character on all
lines and the pre-commit git hook removed them.
- tests/spirv/debug-info.slang : the expected keyword DebugValue had to
change to DebugDeclare, because that's what we get with ToT.
- tests/spirv/debug-value-dynamic-index.slang : This test is currently
failing, and it will pass once DebugLocalVariable instruction missing
for parameter of the entry point function shader-slang#7693 is resolved.

---------

Co-authored-by: slangbot <ellieh+slangbot@nvidia.com>
…hader-slang#8319)

This cause the pthread not found issue on old glibc build. 
This reverts commit 1133271.
1. comments
2. remove test changes
3. fix up lower-to-ir AddressOfExpr logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants