<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/spirv/debug-value-dynamic-index.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-09-02T19:51:12+00:00</updated>
<entry>
<title>Emit DebugInfo for the legalized entry point parameters (#7703)</title>
<updated>2025-09-02T19:51:12+00:00</updated>
<author>
<name>Jay Kwak</name>
<email>82421531+jkwak-work@users.noreply.github.com</email>
</author>
<published>2025-09-02T19:51:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=21693abbd0579107e3c03d1e5090b2653722b5de'/>
<id>urn:sha1:21693abbd0579107e3c03d1e5090b2653722b5de</id>
<content type='text'>
This commit is to emit the debug-info for the entry point parameters.

Two things are implemented/fixed in this PR:
- We were not emitting the `DebugVar` and `DebugValue` at the IR
lowering level when the type of the entry point parameter is `ConstRef`.
This commit handles the `ConstRef` case in a same way that the other
types are handled so that `DebugVar` and `DebugValues` are properly
emitted at the IR lowering level.
- Two types for Geometry shaders were incorrectly treated as not valid
types for the DebugInfo. They are `InputPatch` and `OutputPatch`. This
commit handles them as valid types for DebugInfo.</content>
</entry>
<entry>
<title>Remove the embedded source to avoid self-matching in slang-test (#8305)</title>
<updated>2025-08-28T17:45:07+00:00</updated>
<author>
<name>Jay Kwak</name>
<email>82421531+jkwak-work@users.noreply.github.com</email>
</author>
<published>2025-08-28T17:45:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=c19e2e92ae8e713225262a17f39a438cd511d416'/>
<id>urn:sha1:c19e2e92ae8e713225262a17f39a438cd511d416</id>
<content type='text'>
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 #7693 is resolved.

---------

Co-authored-by: slangbot &lt;ellieh+slangbot@nvidia.com&gt;</content>
</entry>
<entry>
<title>Various SPIRV fixes. (#3655)</title>
<updated>2024-03-01T20:42:37+00:00</updated>
<author>
<name>Yong He</name>
<email>yonghe@outlook.com</email>
</author>
<published>2024-03-01T20:42:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=0d01b3701aae582b5fe3b6e2c2c718bec568c741'/>
<id>urn:sha1:0d01b3701aae582b5fe3b6e2c2c718bec568c741</id>
<content type='text'>
* Various SPIRV fixes.

* Fix debugValue.</content>
</entry>
</feed>
