From c4541e83b4a57d8317932bc4277ee6a2d45bb2f6 Mon Sep 17 00:00:00 2001 From: Robert Stepinski Date: Fri, 16 Aug 2019 11:30:48 -0400 Subject: Fix a typo in core.meta.slang which was causing an assert when (#1024) compiling shaders that used texture2DMS Load() operations --- tests/bugs/texture2d-ms.hlsl.expected | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tests/bugs/texture2d-ms.hlsl.expected (limited to 'tests/bugs/texture2d-ms.hlsl.expected') diff --git a/tests/bugs/texture2d-ms.hlsl.expected b/tests/bugs/texture2d-ms.hlsl.expected new file mode 100644 index 000000000..2202bbbec --- /dev/null +++ b/tests/bugs/texture2d-ms.hlsl.expected @@ -0,0 +1,55 @@ +result code = 0 +standard error = { +} +standard output = { +// Module Version 10000 +// Generated by (magic number): 80007 +// Id's are bound by 30 + + Capability Shader + 1: ExtInstImport "GLSL.std.450" + MemoryModel Logical GLSL450 + EntryPoint GLCompute 4 "main" 17 + ExecutionMode 4 LocalSize 4 4 1 + Source GLSL 450 + SourceExtension "GL_EXT_samplerless_texture_functions" + SourceExtension "GL_GOOGLE_cpp_style_line_directive" + Name 4 "main" + Name 9 "_S1" + Name 12 "tex_0" + Name 17 "gl_WorkGroupID" + Decorate 12(tex_0) DescriptorSet 0 + Decorate 12(tex_0) Binding 0 + Decorate 17(gl_WorkGroupID) BuiltIn WorkgroupId + Decorate 29 BuiltIn WorkgroupSize + 2: TypeVoid + 3: TypeFunction 2 + 6: TypeFloat 32 + 7: TypeVector 6(float) 4 + 8: TypePointer Function 7(fvec4) + 10: TypeImage 6(float) 2D multi-sampled sampled format:Unknown + 11: TypePointer UniformConstant 10 + 12(tex_0): 11(ptr) Variable UniformConstant + 14: TypeInt 32 0 + 15: TypeVector 14(int) 3 + 16: TypePointer Input 15(ivec3) +17(gl_WorkGroupID): 16(ptr) Variable Input + 18: TypeVector 14(int) 2 + 21: TypeInt 32 1 + 22: TypeVector 21(int) 2 + 24: 21(int) Constant 0 + 27: 14(int) Constant 4 + 28: 14(int) Constant 1 + 29: 15(ivec3) ConstantComposite 27 27 28 + 4(main): 2 Function None 3 + 5: Label + 9(_S1): 8(ptr) Variable Function + 13: 10 Load 12(tex_0) + 19: 15(ivec3) Load 17(gl_WorkGroupID) + 20: 18(ivec2) VectorShuffle 19 19 0 1 + 23: 22(ivec2) Bitcast 20 + 25: 7(fvec4) ImageFetch 13 23 Sample 24 + Store 9(_S1) 25 + Return + FunctionEnd +} -- cgit v1.2.3