Fix bugs in missing Builtin decoration for some NV builtins for tessellation
control shaders. Fix bug in member remapping.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
spv.multiviewPerViewAttributes.tesc
|
||||
Validation failed
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80007
|
||||
// Id's are bound by 37
|
||||
// Id's are bound by 41
|
||||
|
||||
Capability Tessellation
|
||||
Capability PerViewAttributesNV
|
||||
@@ -24,7 +23,7 @@ Validation failed
|
||||
MemberName 27(gl_PerVertex) 1 "gl_PointSize"
|
||||
MemberName 27(gl_PerVertex) 2 "gl_ClipDistance"
|
||||
MemberName 27(gl_PerVertex) 3 "gl_CullDistance"
|
||||
MemberName 27(gl_PerVertex) 5 "gl_PositionPerViewNV"
|
||||
MemberName 27(gl_PerVertex) 4 "gl_PositionPerViewNV"
|
||||
Name 31 "gl_in"
|
||||
MemberDecorate 13(gl_PerVertex) 0 BuiltIn PositionPerViewNV
|
||||
MemberDecorate 13(gl_PerVertex) 1 BuiltIn ViewportMaskPerViewNV
|
||||
@@ -34,6 +33,7 @@ Validation failed
|
||||
MemberDecorate 27(gl_PerVertex) 1 BuiltIn PointSize
|
||||
MemberDecorate 27(gl_PerVertex) 2 BuiltIn ClipDistance
|
||||
MemberDecorate 27(gl_PerVertex) 3 BuiltIn CullDistance
|
||||
MemberDecorate 27(gl_PerVertex) 4 BuiltIn PositionPerViewNV
|
||||
Decorate 27(gl_PerVertex) Block
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
@@ -61,7 +61,8 @@ Validation failed
|
||||
30: TypePointer Input 29
|
||||
31(gl_in): 30(ptr) Variable Input
|
||||
32: TypePointer Input 7(fvec4)
|
||||
35: TypePointer Output 7(fvec4)
|
||||
35: 11(int) Constant 4
|
||||
39: TypePointer Output 7(fvec4)
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
20: 11(int) Load 19(gl_InvocationID)
|
||||
@@ -70,7 +71,10 @@ Validation failed
|
||||
25: 11(int) Load 19(gl_InvocationID)
|
||||
33: 32(ptr) AccessChain 31(gl_in) 21 22
|
||||
34: 7(fvec4) Load 33
|
||||
36: 35(ptr) AccessChain 17(gl_out) 25 22 22
|
||||
Store 36 34
|
||||
36: 32(ptr) AccessChain 31(gl_in) 21 35 22
|
||||
37: 7(fvec4) Load 36
|
||||
38: 7(fvec4) FAdd 34 37
|
||||
40: 39(ptr) AccessChain 17(gl_out) 25 22 22
|
||||
Store 40 38
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user