Add GLSL_EXT_shader_tile_image

This commit is contained in:
janharaldfredriksen-arm
2023-03-30 17:50:56 +02:00
committed by arcady-lunarg
parent a3310b7cff
commit 0bbec2e8f6
33 changed files with 5712 additions and 5083 deletions

View File

@@ -1,7 +1,7 @@
440.frag
ERROR: 0:11: 'location' : overlapping use of location 4
ERROR: 0:13: 'component' : type overflows the available 4 components
ERROR: 0:22: 'location' : fragment outputs sharing the same location must be the same basic type 30
ERROR: 0:22: 'location' : fragment outputs or tileImageEXTs sharing the same location 30 must be the same basic type
ERROR: 0:24: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)
ERROR: 0:25: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)
ERROR: 0:26: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)

View File

@@ -0,0 +1,38 @@
spv.ext.ShaderTileImage.color.frag
WARNING: 0:6: '' : all default precisions are highp; use precision statements to quiet warning, e.g.:
"precision mediump int; precision highp float;"
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 15
Capability Shader
Capability TileImageColorReadAccessEXT
Extension "SPV_EXT_shader_tile_image"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 9
ExecutionMode 4 OriginUpperLeft
Source GLSL 460
SourceExtension "GL_EXT_shader_tile_image"
Name 4 "main"
Name 9 "out_color"
Name 12 "in_color"
Decorate 9(out_color) Location 0
Decorate 12(in_color) Location 1
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypeVector 6(float) 4
8: TypePointer Output 7(fvec4)
9(out_color): 8(ptr) Variable Output
10: TypeImage 6(float) TileImageDataEXT nonsampled format:Unknown
11: TypePointer TileImageEXT 10
12(in_color): 11(ptr) Variable TileImageEXT
4(main): 2 Function None 3
5: Label
13: 10 Load 12(in_color)
14: 7(fvec4) ColorAttachmentReadEXT 13
Store 9(out_color) 14
Return
FunctionEnd

View File

@@ -0,0 +1,56 @@
spv.ext.ShaderTileImage.depth_stencil.frag
WARNING: 0:6: '' : all default precisions are highp; use precision statements to quiet warning, e.g.:
"precision mediump int; precision highp float;"
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 26
Capability Shader
Capability TileImageDepthReadAccessEXT
Capability TileImageStencilReadAccessEXT
Extension "SPV_EXT_shader_tile_image"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 16 22
ExecutionMode 4 OriginUpperLeft
Source GLSL 460
SourceExtension "GL_EXT_shader_tile_image"
Name 4 "main"
Name 8 "depth"
Name 12 "stencil_value"
Name 16 "stencil_out"
Name 22 "depth_out"
Decorate 13 RelaxedPrecision
Decorate 16(stencil_out) Location 0
Decorate 22(depth_out) Location 1
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypePointer Function 6(float)
10: TypeInt 32 0
11: TypePointer Function 10(int)
14: TypeVector 10(int) 4
15: TypePointer Output 14(ivec4)
16(stencil_out): 15(ptr) Variable Output
18: 10(int) Constant 0
20: TypeVector 6(float) 4
21: TypePointer Output 20(fvec4)
22(depth_out): 21(ptr) Variable Output
24: 6(float) Constant 0
4(main): 2 Function None 3
5: Label
8(depth): 7(ptr) Variable Function
12(stencil_value): 11(ptr) Variable Function
9: 6(float) DepthAttachmentReadEXT
Store 8(depth) 9
13: 10(int) StencilAttachmentReadEXT
Store 12(stencil_value) 13
17: 10(int) Load 12(stencil_value)
19: 14(ivec4) CompositeConstruct 17 18 18 18
Store 16(stencil_out) 19
23: 6(float) Load 8(depth)
25: 20(fvec4) CompositeConstruct 23 24 24 24
Store 22(depth_out) 25
Return
FunctionEnd

View File

@@ -0,0 +1,6 @@
spv.ext.ShaderTileImage.overlap.frag
ERROR: 0:8: 'location' : overlapping use of location 1
ERROR: 1 compilation errors. No code generated.
SPIR-V is not generated for failed compile or link

View File

@@ -0,0 +1,6 @@
spv.ext.ShaderTileImage.subpassinput.frag
ERROR: 0:6: 'subpassInput' : can not be used with GL_EXT_shader_tile_image enabled
ERROR: 1 compilation errors. No code generated.
SPIR-V is not generated for failed compile or link

View File

@@ -0,0 +1,6 @@
spv.ext.ShaderTileImage.typemismatch.frag
ERROR: 0:7: 'location' : fragment outputs or tileImageEXTs sharing the same location 0 must be the same basic type
ERROR: 1 compilation errors. No code generated.
SPIR-V is not generated for failed compile or link

View File

@@ -0,0 +1,9 @@
spv.ext.ShaderTileImage.wronglayout.frag
ERROR: 0:7: 'binding' : requires uniform or buffer storage qualifier
ERROR: 0:7: 'set' : cannot be used with tileImageEXT
ERROR: 0:7: 'tileImageEXT' : can only be used with an explicit location
ERROR: 0:7: 'input_attachment_index' : can only be used with a subpass
ERROR: 4 compilation errors. No code generated.
SPIR-V is not generated for failed compile or link