yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Spencer FrickeRevert "`local_size_*_id` and SPIR-V 1.2 (#4052)" (#4403)e7e245dd

main
3.8 KiB89 linesraw
1link.vk.multiUnitLayout.2.comp
2Shader version: 450
3local_size = (1, 1, 1)
4local_size ids = (1, -1, -1)
50:? Sequence
60:10  Function Definition: do_compute(u1; ( global void)
70:10    Function Parameters: 
80:10      'index' ( in highp uint)
90:12    Sequence
100:12      add second child into first child ( temp highp 4-component vector of float)
110:12        indirect index (layout( column_major std430) temp highp 4-component vector of float)
120:12          data: direct index for structure (layout( column_major std430) buffer runtime-sized array of highp 4-component vector of float)
130:12            'dataBuf' (layout( set=0 binding=0 column_major std430) buffer block{layout( column_major std430) buffer runtime-sized array of highp 4-component vector of float data})
140:12            Constant:
150:12              0 (const int)
160:12          'index' ( in highp uint)
170:12        Constant:
180:12          1.000000
190:12          1.000000
200:12          1.000000
210:12          1.000000
220:?   Linker Objects
230:?     'gl_WorkGroupSize' ( specialization-constant const highp 3-component vector of uint WorkGroupSize)
240:?       1 (const uint)
250:?       1 (const uint)
260:?       1 (const uint)
270:?     'dataBuf' (layout( set=0 binding=0 column_major std430) buffer block{layout( column_major std430) buffer runtime-sized array of highp 4-component vector of float data})
28
29link.vk.multiUnitLayout.0.comp
30Shader version: 450
31local_size = (1, 1, 1)
32local_size ids = (0, -1, -1)
330:? Sequence
340:7  Function Definition: main( ( global void)
350:7    Function Parameters: 
360:9    Sequence
370:9      Function Call: do_compute(u1; ( global void)
380:9        direct index ( temp highp uint)
390:9          'gl_GlobalInvocationID' ( in highp 3-component vector of uint GlobalInvocationID)
400:9          Constant:
410:9            0 (const int)
420:?   Linker Objects
430:?     'gl_WorkGroupSize' ( specialization-constant const highp 3-component vector of uint WorkGroupSize)
440:?       1 (const uint)
450:?       1 (const uint)
460:?       1 (const uint)
47
48
49Linked compute stage:
50
51ERROR: Linking compute stage: Contradictory local size specialization ids
52
53Shader version: 450
54local_size = (1, 1, 1)
55local_size ids = (1, -1, -1)
560:? Sequence
570:10  Function Definition: do_compute(u1; ( global void)
580:10    Function Parameters: 
590:10      'index' ( in highp uint)
600:12    Sequence
610:12      add second child into first child ( temp highp 4-component vector of float)
620:12        indirect index (layout( column_major std430) temp highp 4-component vector of float)
630:12          data: direct index for structure (layout( column_major std430) buffer runtime-sized array of highp 4-component vector of float)
640:12            'dataBuf' (layout( set=0 binding=0 column_major std430) buffer block{layout( column_major std430) buffer runtime-sized array of highp 4-component vector of float data})
650:12            Constant:
660:12              0 (const int)
670:12          'index' ( in highp uint)
680:12        Constant:
690:12          1.000000
700:12          1.000000
710:12          1.000000
720:12          1.000000
730:7  Function Definition: main( ( global void)
740:7    Function Parameters: 
750:9    Sequence
760:9      Function Call: do_compute(u1; ( global void)
770:9        direct index ( temp highp uint)
780:9          'gl_GlobalInvocationID' ( in highp 3-component vector of uint GlobalInvocationID)
790:9          Constant:
800:9            0 (const int)
810:?   Linker Objects
820:?     'gl_WorkGroupSize' ( specialization-constant const highp 3-component vector of uint WorkGroupSize)
830:?       1 (const uint)
840:?       1 (const uint)
850:?       1 (const uint)
860:?     'dataBuf' (layout( set=0 binding=0 column_major std430) buffer block{layout( column_major std430) buffer runtime-sized array of highp 4-component vector of float data})
87
88Validation failed
89SPIR-V is not generated for failed compile or link