From 661d6198bbb9857d3fdc6df477e0742ed0b0765c Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 14 Aug 2023 16:23:19 -0700 Subject: Support per field matrix layout (#3101) * Support per field matrix layout * Fix warnings. * Fix. * Fix tests. * Fix spiv gen. * Fix. * More test fixes. * Fix. * Run only GPU tests on self-hosted servers. * Remove -use-glsl-matrix-layout-modifier. * Fix. --------- Co-authored-by: Yong He --- tests/spirv/spirv-debug-break.slang | 6 ++++- tests/spirv/spirv-debug-break.slang.expected | 37 ---------------------------- 2 files changed, 5 insertions(+), 38 deletions(-) delete mode 100644 tests/spirv/spirv-debug-break.slang.expected (limited to 'tests/spirv') diff --git a/tests/spirv/spirv-debug-break.slang b/tests/spirv/spirv-debug-break.slang index 18e8c8597..e57024037 100644 --- a/tests/spirv/spirv-debug-break.slang +++ b/tests/spirv/spirv-debug-break.slang @@ -1,5 +1,5 @@ // spirv-instruction.slang -//TEST(compute, vulkan):SIMPLE:-target glsl -entry computeMain -stage compute +//TEST(compute, vulkan):SIMPLE(filecheck=CHECK):-target glsl -entry computeMain -stage compute [[vk::spirv_instruction(1, "NonSemantic.DebugBreak")]] void _spvDebugBreak(int v); @@ -7,6 +7,10 @@ void _spvDebugBreak(int v); [ForceInline] void _debugBreak() { _spvDebugBreak(1); } +// CHECK:spirv_instruction(id = 1, set = "NonSemantic.DebugBreak") +// CHECK:void _spvDebugBreak_0(int _0); +// CHECK:void main() +// CHECK:_spvDebugBreak_0(1); //TEST_INPUT:set resultBuffer = out ubuffer(data=[0 0 0 0], stride=4) RWStructuredBuffer resultBuffer; diff --git a/tests/spirv/spirv-debug-break.slang.expected b/tests/spirv/spirv-debug-break.slang.expected deleted file mode 100644 index 219aab7d2..000000000 --- a/tests/spirv/spirv-debug-break.slang.expected +++ /dev/null @@ -1,37 +0,0 @@ -result code = 0 -standard error = { -} -standard output = { -#version 450 -#extension GL_EXT_spirv_intrinsics : require -layout(row_major) uniform; -layout(row_major) buffer; - -#line 12 0 -layout(std430, binding = 0) buffer _S1 { - uint _data[]; -} resultBuffer_0; - -#line 5 -spirv_instruction(id = 1, set = "NonSemantic.DebugBreak") -void _spvDebugBreak_0(int _0); - - -#line 15 -layout(local_size_x = 4, local_size_y = 1, local_size_z = 1) in; -void main() -{ - -#line 17 - uint threadId_0 = gl_GlobalInvocationID.x; - - _spvDebugBreak_0(1); - - uint _S2 = threadId_0 + threadId_0; - -#line 21 - ((resultBuffer_0)._data[(threadId_0)]) = _S2; - return; -} - -} -- cgit v1.2.3