summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/atomic-coerce.slang1
-rw-r--r--tests/bugs/buffer-swizzle-store.slang3
-rw-r--r--tests/bugs/dxbc-double-problem.slang3
-rw-r--r--tests/bugs/frexp-double.slang1
-rw-r--r--tests/bugs/frexp.slang1
-rw-r--r--tests/bugs/generic-default-matrix.slang1
-rw-r--r--tests/bugs/generic-groupshared.slang3
-rw-r--r--tests/bugs/generic-member-method.slang3
-rw-r--r--tests/bugs/generic-type-duplication.slang1
-rw-r--r--tests/bugs/gh-2959.slang1
-rw-r--r--tests/bugs/gh-3980.slang1
-rw-r--r--tests/bugs/interface-type-self-ref.slang1
-rw-r--r--tests/bugs/mutating/buffer-write-dce.slang3
-rw-r--r--tests/bugs/mutating/mutating-call-in-loop-dce.slang3
-rw-r--r--tests/bugs/mutating/mutating-generic-method.slang3
-rw-r--r--tests/bugs/mutating/resource-specialization-inout.slang3
-rw-r--r--tests/bugs/negative-literal.slang1
-rw-r--r--tests/bugs/nested-existential-dyndispatch.slang1
-rw-r--r--tests/bugs/nested-switch.slang1
-rw-r--r--tests/bugs/op-assignment-unify-mat.slang1
-rw-r--r--tests/bugs/operator-overload.slang3
-rw-r--r--tests/bugs/specialize-existential-in-generic.slang3
-rw-r--r--tests/bugs/ssa-loop.slang3
-rw-r--r--tests/bugs/static-method.slang1
-rw-r--r--tests/bugs/texture2d-gather.hlsl1
-rw-r--r--tests/bugs/type-legalize-bug-1.slang3
-rw-r--r--tests/bugs/vec-compare.slang3
27 files changed, 40 insertions, 13 deletions
diff --git a/tests/bugs/atomic-coerce.slang b/tests/bugs/atomic-coerce.slang
index 1e56a8d25..2fe927355 100644
--- a/tests/bugs/atomic-coerce.slang
+++ b/tests/bugs/atomic-coerce.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0 ], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
diff --git a/tests/bugs/buffer-swizzle-store.slang b/tests/bugs/buffer-swizzle-store.slang
index ca09cded9..5850cd3c0 100644
--- a/tests/bugs/buffer-swizzle-store.slang
+++ b/tests/bugs/buffer-swizzle-store.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT: RWTexture2D(format=R16G16_FLOAT, size=4, content = one, mipMaps = 1):name g_test
[format("rg16f")]
@@ -13,4 +14,4 @@ void computeMain( uint2 dispatchThreadID : SV_DispatchThreadID )
{
g_test[dispatchThreadID].xy = float2(0.0, 1.0);
outputBuffer[dispatchThreadID.x] = g_test[dispatchThreadID].y;
-} \ No newline at end of file
+}
diff --git a/tests/bugs/dxbc-double-problem.slang b/tests/bugs/dxbc-double-problem.slang
index 441000f63..9daa28a9f 100644
--- a/tests/bugs/dxbc-double-problem.slang
+++ b/tests/bugs/dxbc-double-problem.slang
@@ -3,6 +3,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-cpu -compute -output-using-type -shaderobj
//TEST(compute):COMPARE_COMPUTE_EX:-dx12 -compute -use-dxil -output-using-type -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-dx12 -compute -output-using-type -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
// The problem this test shows is around handling of double with dxbc on D3D12. In that combination
// this code does not write the correct value into the first element - it appears as 0, where
@@ -27,4 +28,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
outputBuffer[1] = pi;
outputBuffer[2] = pi_180;
outputBuffer[3] = w;
-} \ No newline at end of file
+}
diff --git a/tests/bugs/frexp-double.slang b/tests/bugs/frexp-double.slang
index 1a262c8af..40623a17b 100644
--- a/tests/bugs/frexp-double.slang
+++ b/tests/bugs/frexp-double.slang
@@ -4,6 +4,7 @@
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -output-using-type -render-feature double
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -emit-spirv-directly -output-using-type -render-feature double
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-cuda -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
// BUF: type: int32_t
// BUF-NEXT: 1
diff --git a/tests/bugs/frexp.slang b/tests/bugs/frexp.slang
index ea8f17411..01c345d1e 100644
--- a/tests/bugs/frexp.slang
+++ b/tests/bugs/frexp.slang
@@ -4,6 +4,7 @@
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -output-using-type
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -emit-spirv-directly -output-using-type
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-cuda -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
// BUF: type: int32_t
// BUF-NEXT: 1
diff --git a/tests/bugs/generic-default-matrix.slang b/tests/bugs/generic-default-matrix.slang
index a559f59b1..d6de373ad 100644
--- a/tests/bugs/generic-default-matrix.slang
+++ b/tests/bugs/generic-default-matrix.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
diff --git a/tests/bugs/generic-groupshared.slang b/tests/bugs/generic-groupshared.slang
index b352e7382..e6550d025 100644
--- a/tests/bugs/generic-groupshared.slang
+++ b/tests/bugs/generic-groupshared.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
@@ -26,4 +27,4 @@ void computeMain(int3 dispatchThreadID: SV_DispatchThreadID)
{
S<2> s;
outputBuffer[0] = s.doSomething();
-} \ No newline at end of file
+}
diff --git a/tests/bugs/generic-member-method.slang b/tests/bugs/generic-member-method.slang
index 06e80cd0c..4878ae406 100644
--- a/tests/bugs/generic-member-method.slang
+++ b/tests/bugs/generic-member-method.slang
@@ -2,6 +2,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
@@ -49,4 +50,4 @@ void computeMain(int3 dispatchThreadID: SV_DispatchThreadID)
Impl impl;
Nothing nothing;
outputBuffer[0] = impl.doThing(2);
-} \ No newline at end of file
+}
diff --git a/tests/bugs/generic-type-duplication.slang b/tests/bugs/generic-type-duplication.slang
index 4117a7f81..7498543ab 100644
--- a/tests/bugs/generic-type-duplication.slang
+++ b/tests/bugs/generic-type-duplication.slang
@@ -2,6 +2,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
struct MyGeneric<let addOne: bool>
{
diff --git a/tests/bugs/gh-2959.slang b/tests/bugs/gh-2959.slang
index b478fa938..f6c58d1ee 100644
--- a/tests/bugs/gh-2959.slang
+++ b/tests/bugs/gh-2959.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF): -shaderobj -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<uint> outputBuffer;
diff --git a/tests/bugs/gh-3980.slang b/tests/bugs/gh-3980.slang
index 5e5e55d31..509212ea9 100644
--- a/tests/bugs/gh-3980.slang
+++ b/tests/bugs/gh-3980.slang
@@ -4,6 +4,7 @@
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute -shaderobj -output-using-type -emit-spirv-directly
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cpu -compute -output-using-type
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cuda -compute -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
// Slang removes parentheses characters for the bitwise operators when they are not needed.
// DXC prints warning messages even when the expression is correct.
diff --git a/tests/bugs/interface-type-self-ref.slang b/tests/bugs/interface-type-self-ref.slang
index e3b1fe7cc..9c823ffa5 100644
--- a/tests/bugs/interface-type-self-ref.slang
+++ b/tests/bugs/interface-type-self-ref.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
diff --git a/tests/bugs/mutating/buffer-write-dce.slang b/tests/bugs/mutating/buffer-write-dce.slang
index c784531d3..a2c44b291 100644
--- a/tests/bugs/mutating/buffer-write-dce.slang
+++ b/tests/bugs/mutating/buffer-write-dce.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
// Confirm that calling a mutating method to write to a buffer location doesn't
// get DCE'd.
@@ -25,4 +26,4 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
{
int tid = dispatchThreadID.x;
writeOutput(tid);
-} \ No newline at end of file
+}
diff --git a/tests/bugs/mutating/mutating-call-in-loop-dce.slang b/tests/bugs/mutating/mutating-call-in-loop-dce.slang
index 15e5db304..002dd9ca7 100644
--- a/tests/bugs/mutating/mutating-call-in-loop-dce.slang
+++ b/tests/bugs/mutating/mutating-call-in-loop-dce.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
// Confirm that a SideEffectFree mutable method does not get DCE'd when
// it is called from within a loop.
@@ -37,4 +38,4 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
C c;
c.init();
outputBuffer[tid] = doSomething(c);
-} \ No newline at end of file
+}
diff --git a/tests/bugs/mutating/mutating-generic-method.slang b/tests/bugs/mutating/mutating-generic-method.slang
index 58fe6f344..dceafc4b0 100644
--- a/tests/bugs/mutating/mutating-generic-method.slang
+++ b/tests/bugs/mutating/mutating-generic-method.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
// Confirm that a generic method marked `[mutating]`
// produces an `inout` parameter for `this`.
@@ -47,4 +48,4 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
int tid = dispatchThreadID.x;
int val = test(tid);
outputBuffer[tid] = val;
-} \ No newline at end of file
+}
diff --git a/tests/bugs/mutating/resource-specialization-inout.slang b/tests/bugs/mutating/resource-specialization-inout.slang
index 541ecd8ac..a6b531730 100644
--- a/tests/bugs/mutating/resource-specialization-inout.slang
+++ b/tests/bugs/mutating/resource-specialization-inout.slang
@@ -1,6 +1,7 @@
// Bug related to resource specialization on unused resource typed fields.
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT: Texture2D(size=4, content = one):name t2D
Texture2D t2D;
@@ -33,4 +34,4 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
int inputVal = tid;
int outputVal = test(inputVal);
gOutputBuffer[tid] = outputVal;
-} \ No newline at end of file
+}
diff --git a/tests/bugs/negative-literal.slang b/tests/bugs/negative-literal.slang
index 66fc90edf..afb7d604a 100644
--- a/tests/bugs/negative-literal.slang
+++ b/tests/bugs/negative-literal.slang
@@ -2,6 +2,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -shaderobj
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<float> outputBuffer;
diff --git a/tests/bugs/nested-existential-dyndispatch.slang b/tests/bugs/nested-existential-dyndispatch.slang
index ed4f5722d..8c7395760 100644
--- a/tests/bugs/nested-existential-dyndispatch.slang
+++ b/tests/bugs/nested-existential-dyndispatch.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<float> outputBuffer;
diff --git a/tests/bugs/nested-switch.slang b/tests/bugs/nested-switch.slang
index 3cfc0758b..73ec3ad95 100644
--- a/tests/bugs/nested-switch.slang
+++ b/tests/bugs/nested-switch.slang
@@ -3,6 +3,7 @@
//TEST(compute):COMPARE_COMPUTE: -shaderobj
//TEST(compute):COMPARE_COMPUTE:-vk -shaderobj
//TEST(compute):COMPARE_COMPUTE:-cpu -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
int test(int t, int r)
{
diff --git a/tests/bugs/op-assignment-unify-mat.slang b/tests/bugs/op-assignment-unify-mat.slang
index 13b6ecf48..317170687 100644
--- a/tests/bugs/op-assignment-unify-mat.slang
+++ b/tests/bugs/op-assignment-unify-mat.slang
@@ -2,6 +2,7 @@
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -vk
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -cpu
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<uint> outputBuffer;
diff --git a/tests/bugs/operator-overload.slang b/tests/bugs/operator-overload.slang
index cc0306dd3..264f12ac2 100644
--- a/tests/bugs/operator-overload.slang
+++ b/tests/bugs/operator-overload.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
// Tests operator overloading works in user space.
@@ -28,4 +29,4 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
int r = int(c.x + c.y);
outputBuffer[dispatchThreadID.x] = int(r);
-} \ No newline at end of file
+}
diff --git a/tests/bugs/specialize-existential-in-generic.slang b/tests/bugs/specialize-existential-in-generic.slang
index 31ef75512..4d51bf12a 100644
--- a/tests/bugs/specialize-existential-in-generic.slang
+++ b/tests/bugs/specialize-existential-in-generic.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
[Specialize]
interface IAssoc
@@ -39,4 +40,4 @@ void computeMain(int3 dispatchThreadID: SV_DispatchThreadID)
int tid = dispatchThreadID.x;
GenType<Impl> val;
gOutputBuffer[tid] = val.doThing();
-} \ No newline at end of file
+}
diff --git a/tests/bugs/ssa-loop.slang b/tests/bugs/ssa-loop.slang
index 21cf6e7f5..c44290930 100644
--- a/tests/bugs/ssa-loop.slang
+++ b/tests/bugs/ssa-loop.slang
@@ -3,6 +3,7 @@
// Bug related to SSA form for loops
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
int test(int val)
{
@@ -28,4 +29,4 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
int inputVal = tid;
int outputVal = test(inputVal);
gOutputBuffer[tid] = outputVal;
-} \ No newline at end of file
+}
diff --git a/tests/bugs/static-method.slang b/tests/bugs/static-method.slang
index 98e4a3273..9716641b1 100644
--- a/tests/bugs/static-method.slang
+++ b/tests/bugs/static-method.slang
@@ -1,6 +1,7 @@
// static-method.slang
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
struct S
{
diff --git a/tests/bugs/texture2d-gather.hlsl b/tests/bugs/texture2d-gather.hlsl
index d84c122b5..9b0607eae 100644
--- a/tests/bugs/texture2d-gather.hlsl
+++ b/tests/bugs/texture2d-gather.hlsl
@@ -1,4 +1,5 @@
//TEST(smoke):COMPARE_HLSL_RENDER:
+//DISABLE_TEST(smoke):COMPARE_HLSL_RENDER:-mtl
//TEST_INPUT: Texture2D(size=16, content=chessboard, format=R32_FLOAT):name g_texture
//TEST_INPUT: Sampler :name g_sampler
diff --git a/tests/bugs/type-legalize-bug-1.slang b/tests/bugs/type-legalize-bug-1.slang
index 83e28a509..7f1e99d37 100644
--- a/tests/bugs/type-legalize-bug-1.slang
+++ b/tests/bugs/type-legalize-bug-1.slang
@@ -1,4 +1,5 @@
//TEST(compute):COMPARE_COMPUTE: -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[9 9 9 9], stride=4):out,name outputBuffer
//TEST_INPUT:type_conformance A:IFoo=0
@@ -53,4 +54,4 @@ struct A : IFoo
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
user();
-} \ No newline at end of file
+}
diff --git a/tests/bugs/vec-compare.slang b/tests/bugs/vec-compare.slang
index 59ef06d02..996def7d6 100644
--- a/tests/bugs/vec-compare.slang
+++ b/tests/bugs/vec-compare.slang
@@ -1,6 +1,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -shaderobj
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
@@ -76,4 +77,4 @@ void computeMain(int2 pixelIndex : SV_DispatchThreadID)
}
outputBuffer[pixelIndex.x + pixelIndex.y * 4] = (coerceBits << 24) | (floatBits << 16) | (intBits << 8) | (uintBits);
-} \ No newline at end of file
+}