Fix #1720: Give an error for parameter mismatched image format.
This commit is contained in:
@@ -2,14 +2,14 @@ spv.paramMemory.frag
|
||||
Validation failed
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 69
|
||||
// Id's are bound by 64
|
||||
|
||||
Capability Shader
|
||||
Capability StorageImageReadWithoutFormat
|
||||
Capability StorageImageWriteWithoutFormat
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 27 66
|
||||
EntryPoint Fragment 4 "main" 27 61
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source ESSL 310
|
||||
Name 4 "main"
|
||||
@@ -22,39 +22,28 @@ Validation failed
|
||||
Name 22 "data"
|
||||
Name 27 "in_coords"
|
||||
Name 35 "read1"
|
||||
Name 38 "image1"
|
||||
Name 39 "param"
|
||||
Name 42 "read2"
|
||||
Name 45 "image2"
|
||||
Name 38 "read2"
|
||||
Name 43 "image3"
|
||||
Name 46 "param"
|
||||
Name 49 "image3"
|
||||
Name 53 "param"
|
||||
Name 55 "param"
|
||||
Name 57 "image4"
|
||||
Name 61 "param"
|
||||
Name 63 "param"
|
||||
Name 66 "out_color"
|
||||
Name 48 "param"
|
||||
Name 52 "image4"
|
||||
Name 56 "param"
|
||||
Name 58 "param"
|
||||
Name 61 "out_color"
|
||||
Decorate 14(image) Coherent
|
||||
Decorate 14(image) NonWritable
|
||||
Decorate 20(image) Coherent
|
||||
Decorate 20(image) NonReadable
|
||||
Decorate 27(in_coords) Flat
|
||||
Decorate 27(in_coords) Location 0
|
||||
Decorate 38(image1) DescriptorSet 0
|
||||
Decorate 38(image1) Binding 0
|
||||
Decorate 38(image1) Coherent
|
||||
Decorate 38(image1) NonWritable
|
||||
Decorate 45(image2) DescriptorSet 0
|
||||
Decorate 45(image2) Binding 2
|
||||
Decorate 45(image2) NonWritable
|
||||
Decorate 49(image3) DescriptorSet 0
|
||||
Decorate 49(image3) Binding 1
|
||||
Decorate 49(image3) Coherent
|
||||
Decorate 49(image3) NonReadable
|
||||
Decorate 57(image4) DescriptorSet 0
|
||||
Decorate 57(image4) Binding 3
|
||||
Decorate 57(image4) NonReadable
|
||||
Decorate 66(out_color) Location 0
|
||||
Decorate 43(image3) DescriptorSet 0
|
||||
Decorate 43(image3) Binding 1
|
||||
Decorate 43(image3) Coherent
|
||||
Decorate 43(image3) NonReadable
|
||||
Decorate 52(image4) DescriptorSet 0
|
||||
Decorate 52(image4) Binding 3
|
||||
Decorate 52(image4) NonReadable
|
||||
Decorate 61(out_color) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -69,51 +58,44 @@ Validation failed
|
||||
19: TypeFunction 2 8(ptr) 11(ptr) 18(ptr)
|
||||
26: TypePointer Input 10(ivec2)
|
||||
27(in_coords): 26(ptr) Variable Input
|
||||
36: TypeImage 6(float) 2D nonsampled format:Rgba32f
|
||||
37: TypePointer UniformConstant 36
|
||||
38(image1): 37(ptr) Variable UniformConstant
|
||||
43: TypeImage 6(float) 2D nonsampled format:Rgba16f
|
||||
44: TypePointer UniformConstant 43
|
||||
45(image2): 44(ptr) Variable UniformConstant
|
||||
49(image3): 37(ptr) Variable UniformConstant
|
||||
51: 6(float) Constant 1056964608
|
||||
57(image4): 44(ptr) Variable UniformConstant
|
||||
59: 6(float) Constant 1073741824
|
||||
65: TypePointer Output 12(fvec4)
|
||||
66(out_color): 65(ptr) Variable Output
|
||||
67: 6(float) Constant 0
|
||||
68: 12(fvec4) ConstantComposite 67 67 67 67
|
||||
36: 6(float) Constant 1053609165
|
||||
37: 12(fvec4) ConstantComposite 36 36 36 36
|
||||
39: 6(float) Constant 1056964608
|
||||
40: 12(fvec4) ConstantComposite 39 39 39 39
|
||||
41: TypeImage 6(float) 2D nonsampled format:Rgba32f
|
||||
42: TypePointer UniformConstant 41
|
||||
43(image3): 42(ptr) Variable UniformConstant
|
||||
50: TypeImage 6(float) 2D nonsampled format:Rgba16f
|
||||
51: TypePointer UniformConstant 50
|
||||
52(image4): 51(ptr) Variable UniformConstant
|
||||
54: 6(float) Constant 1073741824
|
||||
60: TypePointer Output 12(fvec4)
|
||||
61(out_color): 60(ptr) Variable Output
|
||||
62: 6(float) Constant 0
|
||||
63: 12(fvec4) ConstantComposite 62 62 62 62
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
35(read1): 18(ptr) Variable Function
|
||||
39(param): 11(ptr) Variable Function
|
||||
42(read2): 18(ptr) Variable Function
|
||||
38(read2): 18(ptr) Variable Function
|
||||
46(param): 11(ptr) Variable Function
|
||||
53(param): 11(ptr) Variable Function
|
||||
55(param): 18(ptr) Variable Function
|
||||
61(param): 11(ptr) Variable Function
|
||||
63(param): 18(ptr) Variable Function
|
||||
40: 10(ivec2) Load 27(in_coords)
|
||||
Store 39(param) 40
|
||||
41: 12(fvec4) FunctionCall 16(image_load(I21;vi2;) 38(image1) 39(param)
|
||||
Store 35(read1) 41
|
||||
48(param): 18(ptr) Variable Function
|
||||
56(param): 11(ptr) Variable Function
|
||||
58(param): 18(ptr) Variable Function
|
||||
Store 35(read1) 37
|
||||
Store 38(read2) 40
|
||||
44: 12(fvec4) Load 35(read1)
|
||||
45: 12(fvec4) VectorTimesScalar 44 39
|
||||
47: 10(ivec2) Load 27(in_coords)
|
||||
Store 46(param) 47
|
||||
48: 12(fvec4) FunctionCall 16(image_load(I21;vi2;) 45(image2) 46(param)
|
||||
Store 42(read2) 48
|
||||
50: 12(fvec4) Load 35(read1)
|
||||
52: 12(fvec4) VectorTimesScalar 50 51
|
||||
54: 10(ivec2) Load 27(in_coords)
|
||||
Store 53(param) 54
|
||||
Store 55(param) 52
|
||||
56: 2 FunctionCall 23(image_store(I21;vi2;vf4;) 49(image3) 53(param) 55(param)
|
||||
58: 12(fvec4) Load 42(read2)
|
||||
60: 12(fvec4) VectorTimesScalar 58 59
|
||||
62: 10(ivec2) Load 27(in_coords)
|
||||
Store 61(param) 62
|
||||
Store 63(param) 60
|
||||
64: 2 FunctionCall 23(image_store(I21;vi2;vf4;) 57(image4) 61(param) 63(param)
|
||||
Store 66(out_color) 68
|
||||
Store 48(param) 45
|
||||
49: 2 FunctionCall 23(image_store(I21;vi2;vf4;) 43(image3) 46(param) 48(param)
|
||||
53: 12(fvec4) Load 38(read2)
|
||||
55: 12(fvec4) VectorTimesScalar 53 54
|
||||
57: 10(ivec2) Load 27(in_coords)
|
||||
Store 56(param) 57
|
||||
Store 58(param) 55
|
||||
59: 2 FunctionCall 23(image_store(I21;vi2;vf4;) 52(image4) 56(param) 58(param)
|
||||
Store 61(out_color) 63
|
||||
Return
|
||||
FunctionEnd
|
||||
16(image_load(I21;vi2;): 12(fvec4) Function None 13
|
||||
|
||||
Reference in New Issue
Block a user