diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-01-10 11:01:32 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-10 11:01:32 -0800 |
| commit | 6437f2d37b08972db5e4515bd124639c2903dda1 (patch) | |
| tree | 7ac5ab926ff6861af56e264ab62a6a323fe8ee69 /tests/diagnostics/uninitialized-struct-from-constructor.slang | |
| parent | 54845333858579f66bfa7c42bbf0b8e1317206ce (diff) | |
Fix potential test failures due to SPIRV validation failure (#6047)
There are a few tests that are currently passing but could fail when
conditions change little bit.
When slang-test runs with `test-server`, the spirv validation fails and
the test gets reported as failed even though they are actually passing.
To avoid the potential problem, this commit adds an empty entry point.
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests/diagnostics/uninitialized-struct-from-constructor.slang')
| -rw-r--r-- | tests/diagnostics/uninitialized-struct-from-constructor.slang | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/diagnostics/uninitialized-struct-from-constructor.slang b/tests/diagnostics/uninitialized-struct-from-constructor.slang index e3c44dca1..a422ac765 100644 --- a/tests/diagnostics/uninitialized-struct-from-constructor.slang +++ b/tests/diagnostics/uninitialized-struct-from-constructor.slang @@ -1,4 +1,4 @@ -//TEST:SIMPLE(filecheck=CHK): -target spirv +//TEST:SIMPLE(filecheck=CHK): -target spirv -entry computeMain struct TangentSpace { @@ -21,4 +21,11 @@ struct TangentSpace } //CHK-NOT: warning 41020 -//CHK-NOT: warning 41021
\ No newline at end of file +//CHK-NOT: warning 41021 + +[Shader("compute")] +[NumThreads(4, 1, 1)] +void computeMain(int3 dispatchThreadID : SV_DispatchThreadID) +{ +} + |
