diff options
| author | Yong He <yonghe@outlook.com> | 2024-06-08 05:12:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-08 05:12:49 -0700 |
| commit | 9a23a9aab3721828526c921db1e779008e133e8f (patch) | |
| tree | b49448075cdffe278fd6760e2879bc061eb8e0af /tests/hlsl | |
| parent | bc680e74bd8a0c415cab5ed6fe00b762c26b8b8d (diff) | |
SPIRV `Block` decoration fixes. (#4303)
* SPIRV `Block` decoration fixes.
- SPIRV does not allow duplicate `Block` decorations. So we shouldn't be generating them.
- Also fixes duplication of OpName.
- SPIRV and HLSL do not allow ConstantBuffer with trailing unsized arrays. Added a check in the front-end against such code.
* Convert failing cross-compile tests to filecheck.
---------
Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com>
Diffstat (limited to 'tests/hlsl')
| -rw-r--r-- | tests/hlsl/raster-order-resource.slang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hlsl/raster-order-resource.slang b/tests/hlsl/raster-order-resource.slang index 2db9f31dc..099234af7 100644 --- a/tests/hlsl/raster-order-resource.slang +++ b/tests/hlsl/raster-order-resource.slang @@ -14,7 +14,7 @@ RasterizerOrderedByteAddressBuffer buffer; [shader("fragment")] float4 fragMain() : SV_Target { - // SPIRV: %fragMain_0 = OpFunction + // SPIRV: %fragMain{{.*}} = OpFunction // SPIRV: OpBeginInvocationInterlockEXT // SPIRV: OpEndInvocationInterlockEXT @@ -27,7 +27,7 @@ RasterizerOrderedTexture2D tex; [shader("fragment")] float4 fragMain2() : SV_Target { - // SPIRV: %fragMain2_0 = OpFunction + // SPIRV: %fragMain2{{.*}} = OpFunction // SPIRV: OpBeginInvocationInterlockEXT // SPIRV: OpEndInvocationInterlockEXT @@ -40,7 +40,7 @@ RasterizerOrderedStructuredBuffer<float> buffer2; [shader("fragment")] float4 fragMain3() : SV_Target { - // SPIRV: %fragMain3_0 = OpFunction + // SPIRV: %fragMain3{{.*}} = OpFunction // SPIRV: OpBeginInvocationInterlockEXT // SPIRV: OpEndInvocationInterlockEXT |
