diff options
author | Chris Bieneman <chris.bieneman@me.com> | 2023-07-17 19:33:16 -0500 |
---|---|---|
committer | Chris Bieneman <chris.bieneman@me.com> | 2023-07-19 18:01:01 -0500 |
commit | 5fdf8605102014825dc79e1859f218228dbcd15f (patch) | |
tree | d3800cf76b18675300c3d0a817f7ae6093421620 /llvm/test/ObjectYAML | |
parent | f385abf131e01b12b14ac3bc7214eb119b40523e (diff) | |
download | llvm-5fdf8605102014825dc79e1859f218228dbcd15f.zip llvm-5fdf8605102014825dc79e1859f218228dbcd15f.tar.gz llvm-5fdf8605102014825dc79e1859f218228dbcd15f.tar.bz2 |
[DX] Fix PSV resource serialization
When writing this initially I missed including the resource stride.
This change adds the resources stride to the serialized value.
I've also extended the testing and error reporting around parsing PSV
information. This adds tests to verify that the reader produces
meaningful error messages for malformed DXContainer files, and a test
that verifies the resource stride is respected in the reader even if
the stride isn't an expected or known value (as would happen if the
format changes in the future).
This is part of #59479.
Reviewed By: bogner, bob80905
Differential Revision: https://reviews.llvm.org/D155143
Diffstat (limited to 'llvm/test/ObjectYAML')
24 files changed, 48 insertions, 0 deletions
diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv0-amplification.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv0-amplification.yaml index 4b9999f..d15bfad 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv0-amplification.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv0-amplification.yaml @@ -17,6 +17,7 @@ Parts: PayloadSizeInBytes: 4092 MinimumWaveLaneCount: 0 MaximumWaveLaneCount: 4294967295 + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -45,6 +46,7 @@ Parts: # CHECK-NEXT: PayloadSizeInBytes: 4092 # CHECK-NEXT: MinimumWaveLaneCount: 0 # CHECK-NEXT: MaximumWaveLaneCount: 4294967295 +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv0-compute.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv0-compute.yaml index 84111d0..7e9f2fbd 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv0-compute.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv0-compute.yaml @@ -16,6 +16,7 @@ Parts: ShaderStage: 5 MinimumWaveLaneCount: 0 MaximumWaveLaneCount: 4294967295 + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -43,6 +44,7 @@ Parts: # CHECK-NEXT: ShaderStage: 5 # CHECK-NEXT: MinimumWaveLaneCount: 0 # CHECK-NEXT: MaximumWaveLaneCount: 4294967295 +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv0-domain.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv0-domain.yaml index c5ca43a..db2aee9 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv0-domain.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv0-domain.yaml @@ -19,6 +19,7 @@ Parts: TessellatorDomain: 2056 MinimumWaveLaneCount: 0 MaximumWaveLaneCount: 4294967295 + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -49,6 +50,7 @@ Parts: # CHECK-NEXT: TessellatorDomain: 2056 # CHECK-NEXT: MinimumWaveLaneCount: 0 # CHECK-NEXT: MaximumWaveLaneCount: 4294967295 +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv0-geometry.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv0-geometry.yaml index 96e8b27..5509ac6 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv0-geometry.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv0-geometry.yaml @@ -20,6 +20,7 @@ Parts: OutputPositionPresent: 1 MinimumWaveLaneCount: 0 MaximumWaveLaneCount: 4294967295 + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -51,6 +52,7 @@ Parts: # CHECK-NEXT: OutputPositionPresent: 1 # CHECK-NEXT: MinimumWaveLaneCount: 0 # CHECK-NEXT: MaximumWaveLaneCount: 4294967295 +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv0-hull.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv0-hull.yaml index 8113874..cd60f2b 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv0-hull.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv0-hull.yaml @@ -20,6 +20,7 @@ Parts: TessellatorOutputPrimitive: 8192 MinimumWaveLaneCount: 0 MaximumWaveLaneCount: 4294967295 + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -51,6 +52,7 @@ Parts: # CHECK-NEXT: TessellatorOutputPrimitive: 8192 # CHECK-NEXT: MinimumWaveLaneCount: 0 # CHECK-NEXT: MaximumWaveLaneCount: 4294967295 +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv0-mesh.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv0-mesh.yaml index 4d8c6d4..07fb656 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv0-mesh.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv0-mesh.yaml @@ -21,6 +21,7 @@ Parts: MaxOutputPrimitives: 4092 MinimumWaveLaneCount: 0 MaximumWaveLaneCount: 4294967295 + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -53,6 +54,7 @@ Parts: # CHECK-NEXT: MaxOutputPrimitives: 4092 # CHECK-NEXT: MinimumWaveLaneCount: 0 # CHECK-NEXT: MaximumWaveLaneCount: 4294967295 +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv0-pixel.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv0-pixel.yaml index c05471c..c7f956e 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv0-pixel.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv0-pixel.yaml @@ -18,6 +18,7 @@ Parts: SampleFrequency: 96 MinimumWaveLaneCount: 0 MaximumWaveLaneCount: 4294967295 + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -47,6 +48,7 @@ Parts: # CHECK-NEXT: SampleFrequency: 96 # CHECK-NEXT: MinimumWaveLaneCount: 0 # CHECK-NEXT: MaximumWaveLaneCount: 4294967295 +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv0-vertex.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv0-vertex.yaml index fe176ad..6df9169 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv0-vertex.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv0-vertex.yaml @@ -17,6 +17,7 @@ Parts: OutputPositionPresent: 1 MinimumWaveLaneCount: 0 MaximumWaveLaneCount: 4294967295 + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -45,6 +46,7 @@ Parts: # CHECK-NEXT: OutputPositionPresent: 1 # CHECK-NEXT: MinimumWaveLaneCount: 0 # CHECK-NEXT: MaximumWaveLaneCount: 4294967295 +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv1-amplification.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv1-amplification.yaml index 310df02..94c215c 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv1-amplification.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv1-amplification.yaml @@ -23,6 +23,7 @@ Parts: SigPatchConstOrPrimElements: 32 SigInputVectors: 64 SigOutputVectors: [ 8, 16, 32, 64 ] + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -57,6 +58,7 @@ Parts: # CHECK-NEXT: SigPatchConstOrPrimElements: 32 # CHECK-NEXT: SigInputVectors: 64 # CHECK-NEXT: SigOutputVectors: [ 8, 16, 32, 64 ] +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv1-compute.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv1-compute.yaml index d8233a78..715b28b 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv1-compute.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv1-compute.yaml @@ -22,6 +22,7 @@ Parts: SigPatchConstOrPrimElements: 32 SigInputVectors: 64 SigOutputVectors: [ 8, 16, 32, 64 ] + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -55,6 +56,7 @@ Parts: # CHECK-NEXT: SigPatchConstOrPrimElements: 32 # CHECK-NEXT: SigInputVectors: 64 # CHECK-NEXT: SigOutputVectors: [ 8, 16, 32, 64 ] +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv1-domain.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv1-domain.yaml index 87826ed..472b5e0 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv1-domain.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv1-domain.yaml @@ -26,6 +26,7 @@ Parts: SigPatchConstOrPrimElements: 32 SigInputVectors: 64 SigOutputVectors: [ 8, 16, 32, 64 ] + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -63,6 +64,7 @@ Parts: # CHECK-NEXT: SigPatchConstOrPrimElements: 32 # CHECK-NEXT: SigInputVectors: 64 # CHECK-NEXT: SigOutputVectors: [ 8, 16, 32, 64 ] +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv1-geometry.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv1-geometry.yaml index a081cde..0c0a4ed 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv1-geometry.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv1-geometry.yaml @@ -27,6 +27,7 @@ Parts: SigPatchConstOrPrimElements: 32 SigInputVectors: 64 SigOutputVectors: [ 8, 16, 32, 64 ] + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -65,6 +66,7 @@ Parts: # CHECK-NEXT: SigPatchConstOrPrimElements: 32 # CHECK-NEXT: SigInputVectors: 64 # CHECK-NEXT: SigOutputVectors: [ 8, 16, 32, 64 ] +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv1-hull.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv1-hull.yaml index 4c5f60d..330d24f 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv1-hull.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv1-hull.yaml @@ -27,6 +27,7 @@ Parts: SigPatchConstOrPrimElements: 32 SigInputVectors: 64 SigOutputVectors: [ 8, 16, 32, 64 ] + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -65,6 +66,7 @@ Parts: # CHECK-NEXT: SigPatchConstOrPrimElements: 32 # CHECK-NEXT: SigInputVectors: 64 # CHECK-NEXT: SigOutputVectors: [ 8, 16, 32, 64 ] +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv1-mesh.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv1-mesh.yaml index c969620..51bd639 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv1-mesh.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv1-mesh.yaml @@ -29,6 +29,7 @@ Parts: SigPatchConstOrPrimElements: 32 SigInputVectors: 64 SigOutputVectors: [ 8, 16, 32, 64 ] + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -69,6 +70,7 @@ Parts: # CHECK-NEXT: SigPatchConstOrPrimElements: 32 # CHECK-NEXT: SigInputVectors: 64 # CHECK-NEXT: SigOutputVectors: [ 8, 16, 32, 64 ] +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv1-pixel.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv1-pixel.yaml index 279fd09..2e49034 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv1-pixel.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv1-pixel.yaml @@ -24,6 +24,7 @@ Parts: SigPatchConstOrPrimElements: 32 SigInputVectors: 64 SigOutputVectors: [ 8, 16, 32, 64 ] + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -59,6 +60,7 @@ Parts: # CHECK-NEXT: SigPatchConstOrPrimElements: 32 # CHECK-NEXT: SigInputVectors: 64 # CHECK-NEXT: SigOutputVectors: [ 8, 16, 32, 64 ] +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv1-vertex.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv1-vertex.yaml index aa2a17a..ad8f082 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv1-vertex.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv1-vertex.yaml @@ -23,6 +23,7 @@ Parts: SigPatchConstOrPrimElements: 32 SigInputVectors: 64 SigOutputVectors: [ 8, 16, 32, 64 ] + ResourceStride: 16 Resources: - Type: 1 Space: 2 @@ -57,6 +58,7 @@ Parts: # CHECK-NEXT: SigPatchConstOrPrimElements: 32 # CHECK-NEXT: SigInputVectors: 64 # CHECK-NEXT: SigOutputVectors: [ 8, 16, 32, 64 ] +# CHECK-NEXT: ResourceStride: 16 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv2-amplification.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv2-amplification.yaml index f2b431e..d4fee91 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv2-amplification.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv2-amplification.yaml @@ -26,6 +26,7 @@ Parts: NumThreadsX: 512 NumThreadsY: 1024 NumThreadsZ: 2048 + ResourceStride: 24 Resources: - Type: 1 Space: 2 @@ -67,6 +68,7 @@ Parts: # CHECK-NEXT: NumThreadsX: 512 # CHECK-NEXT: NumThreadsY: 1024 # CHECK-NEXT: NumThreadsZ: 2048 +# CHECK-NEXT: ResourceStride: 24 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv2-compute.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv2-compute.yaml index fd477b3..5ee136b 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv2-compute.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv2-compute.yaml @@ -25,6 +25,7 @@ Parts: NumThreadsX: 512 NumThreadsY: 1024 NumThreadsZ: 2048 + ResourceStride: 24 Resources: - Type: 1 Space: 2 @@ -65,6 +66,7 @@ Parts: # CHECK-NEXT: NumThreadsX: 512 # CHECK-NEXT: NumThreadsY: 1024 # CHECK-NEXT: NumThreadsZ: 2048 +# CHECK-NEXT: ResourceStride: 24 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv2-domain.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv2-domain.yaml index f339a42..4ed9f04 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv2-domain.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv2-domain.yaml @@ -29,6 +29,7 @@ Parts: NumThreadsX: 512 NumThreadsY: 1024 NumThreadsZ: 2048 + ResourceStride: 24 Resources: - Type: 1 Space: 2 @@ -73,6 +74,7 @@ Parts: # CHECK-NEXT: NumThreadsX: 512 # CHECK-NEXT: NumThreadsY: 1024 # CHECK-NEXT: NumThreadsZ: 2048 +# CHECK-NEXT: ResourceStride: 24 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv2-geometry.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv2-geometry.yaml index 09150dd..66def9b 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv2-geometry.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv2-geometry.yaml @@ -30,6 +30,7 @@ Parts: NumThreadsX: 512 NumThreadsY: 1024 NumThreadsZ: 2048 + ResourceStride: 24 Resources: - Type: 1 Space: 2 @@ -75,6 +76,7 @@ Parts: # CHECK-NEXT: NumThreadsX: 512 # CHECK-NEXT: NumThreadsY: 1024 # CHECK-NEXT: NumThreadsZ: 2048 +# CHECK-NEXT: ResourceStride: 24 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv2-hull.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv2-hull.yaml index 9a07346..0a35992 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv2-hull.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv2-hull.yaml @@ -30,6 +30,7 @@ Parts: NumThreadsX: 512 NumThreadsY: 1024 NumThreadsZ: 2048 + ResourceStride: 24 Resources: - Type: 1 Space: 2 @@ -75,6 +76,7 @@ Parts: # CHECK-NEXT: NumThreadsX: 512 # CHECK-NEXT: NumThreadsY: 1024 # CHECK-NEXT: NumThreadsZ: 2048 +# CHECK-NEXT: ResourceStride: 24 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv2-mesh.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv2-mesh.yaml index d6e8be4..ec81b60 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv2-mesh.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv2-mesh.yaml @@ -32,6 +32,7 @@ Parts: NumThreadsX: 512 NumThreadsY: 1024 NumThreadsZ: 2048 + ResourceStride: 24 Resources: - Type: 1 Space: 2 @@ -79,6 +80,7 @@ Parts: # CHECK-NEXT: NumThreadsX: 512 # CHECK-NEXT: NumThreadsY: 1024 # CHECK-NEXT: NumThreadsZ: 2048 +# CHECK-NEXT: ResourceStride: 24 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv2-pixel.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv2-pixel.yaml index 841c1e9..60e53f8 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv2-pixel.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv2-pixel.yaml @@ -27,6 +27,7 @@ Parts: NumThreadsX: 512 NumThreadsY: 1024 NumThreadsZ: 2048 + ResourceStride: 24 Resources: - Type: 1 Space: 2 @@ -69,6 +70,7 @@ Parts: # CHECK-NEXT: NumThreadsX: 512 # CHECK-NEXT: NumThreadsY: 1024 # CHECK-NEXT: NumThreadsZ: 2048 +# CHECK-NEXT: ResourceStride: 24 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 diff --git a/llvm/test/ObjectYAML/DXContainer/PSVv2-vertex.yaml b/llvm/test/ObjectYAML/DXContainer/PSVv2-vertex.yaml index 786cbc7..15b227c 100644 --- a/llvm/test/ObjectYAML/DXContainer/PSVv2-vertex.yaml +++ b/llvm/test/ObjectYAML/DXContainer/PSVv2-vertex.yaml @@ -26,6 +26,7 @@ Parts: NumThreadsX: 512 NumThreadsY: 1024 NumThreadsZ: 2048 + ResourceStride: 24 Resources: - Type: 1 Space: 2 @@ -67,6 +68,7 @@ Parts: # CHECK-NEXT: NumThreadsX: 512 # CHECK-NEXT: NumThreadsY: 1024 # CHECK-NEXT: NumThreadsZ: 2048 +# CHECK-NEXT: ResourceStride: 24 # CHECK-NEXT: Resources: # CHECK-NEXT: - Type: 1 # CHECK-NEXT: Space: 2 |