diff options
| author | venkataram-nv <vedavamadath@nvidia.com> | 2025-07-18 09:38:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-18 16:38:00 +0000 |
| commit | 48b6e2432ea28c06d04931fccd633e31eed6d995 (patch) | |
| tree | b976380fd3464b231275e0ae2c1c6ac8af1bb6c3 /tests/compute | |
| parent | 85edfb178cd243134f4bb3d35ad71f154d76c81c (diff) | |
Lower int/uint/bool matrices to arrays for SPIRV (#7687)
* Add tests for expected behaviour
* Allow matrix types in logical or/and
* Legalize int/bool matrix types and construction with makeMatrix
* Legalize uint matrices and operations
* Limit testing to only SPIRV
* Better tests for int and bool
* Add test for uint
* Remove GLSL tests
* Remove old test for diagnosing int matrices
* Emit SPIRV directly in tests
* format code
* Address PR comments
* Improve testing
* Address PR comments
* format code
* Add tests for matrix intrinsic operations
* Move matrix lowering to dedicated legalization pass
* Fix compiler warning
* Remove signal again
* Reorder matrix and vector legalization
* Fix formatting
* Add shift and comparison tests
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'tests/compute')
| -rw-r--r-- | tests/compute/integer-matrix-diagnostic.slang | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/compute/integer-matrix-diagnostic.slang b/tests/compute/integer-matrix-diagnostic.slang deleted file mode 100644 index bd69c28e4..000000000 --- a/tests/compute/integer-matrix-diagnostic.slang +++ /dev/null @@ -1,22 +0,0 @@ -// Check that using matrices with integer floating point type yields the correct diagnostic - -//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target glsl -entry computeMain -stage compute -//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target metal -entry computeMain -stage compute -//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv -entry computeMain -stage compute -//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target wgsl -entry computeMain -stage compute - -cbuffer MatrixBuffer -{ - // CHECK: error 38202 - int4x4 iMatrix; -} - -//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out, name=outputBuffer -RWStructuredBuffer<int4> outputBuffer; - -[numthreads(4, 1, 1)] -void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) -{ - uint index = dispatchThreadID.x; - outputBuffer[index] = iMatrix[0][0]; -}
\ No newline at end of file |
