yum-mirror/glslang

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

PratapFix xfb size computation losing 32-bit-ness through arrays516724d9

main
5.2 KiB105 linesraw
1xfbArrayStride.error.vert
2Shader version: 450
3Requested GL_EXT_shader_explicit_arithmetic_types_float16
4in xfb mode
50:? Sequence
60:23  Function Definition: main( ( global void)
70:23    Function Parameters: 
80:25    Sequence
90:25      move second child to first child ( temp float)
100:25        direct index (layout( location=0 xfb_buffer=0 xfb_offset=0) smooth temp float)
110:25          'arr' (layout( location=0 xfb_buffer=0 xfb_offset=0) smooth out 1-element array of float)
120:25          Constant:
130:25            0 (const int)
140:25        Constant:
150:25          1.000000
160:26      move second child to first child ( temp float)
170:26        direct index (layout( location=1 xfb_buffer=1 xfb_offset=0) smooth temp float)
180:26          direct index (layout( location=1 xfb_buffer=1 xfb_offset=0) smooth temp 2-element array of float)
190:26            'nested' (layout( location=1 xfb_buffer=1 xfb_offset=0) smooth out 2-element array of 2-element array of float)
200:26            Constant:
210:26              0 (const int)
220:26          Constant:
230:26            0 (const int)
240:26        Constant:
250:26          2.000000
260:27      move second child to first child ( temp double)
270:27        direct index (layout( location=5 xfb_buffer=2 xfb_offset=0) smooth temp double)
280:27          'darr' (layout( location=5 xfb_buffer=2 xfb_offset=0) smooth out 1-element array of double)
290:27          Constant:
300:27            0 (const int)
310:27        Constant:
320:27          3.000000
330:28      move second child to first child ( temp float16_t)
340:28        direct index (layout( location=7 xfb_buffer=3 xfb_offset=0) smooth temp float16_t)
350:28          'harr' (layout( location=7 xfb_buffer=3 xfb_offset=0) smooth out 1-element array of float16_t)
360:28          Constant:
370:28            0 (const int)
380:28        Constant:
390:28          4.000000
400:?   Linker Objects
410:?     'arr' (layout( location=0 xfb_buffer=0 xfb_offset=0) smooth out 1-element array of float)
420:?     'nested' (layout( location=1 xfb_buffer=1 xfb_offset=0) smooth out 2-element array of 2-element array of float)
430:?     'darr' (layout( location=5 xfb_buffer=2 xfb_offset=0) smooth out 1-element array of double)
440:?     'harr' (layout( location=7 xfb_buffer=3 xfb_offset=0) smooth out 1-element array of float16_t)
450:?     'gl_VertexID' ( gl_VertexId int VertexId)
460:?     'gl_InstanceID' ( gl_InstanceId int InstanceId)
47
48
49Linked vertex stage:
50
51ERROR: Linking vertex stage: xfb_stride must be multiple of 4:
52ERROR:     xfb_buffer 0, xfb_stride 6
53ERROR: Linking vertex stage: xfb_stride must be multiple of 4:
54ERROR:     xfb_buffer 1, xfb_stride 18
55ERROR: Linking vertex stage: xfb_stride must be multiple of 8 for buffer holding a double or 64-bit integer:
56ERROR:     xfb_buffer 2, xfb_stride 12
57ERROR: Linking vertex stage: xfb_stride must be multiple of 2 for buffer holding a half float or 16-bit integer:
58ERROR:     xfb_buffer 3, xfb_stride 3
59
60Shader version: 450
61Requested GL_EXT_shader_explicit_arithmetic_types_float16
62in xfb mode
630:? Sequence
640:23  Function Definition: main( ( global void)
650:23    Function Parameters: 
660:25    Sequence
670:25      move second child to first child ( temp float)
680:25        direct index (layout( location=0 xfb_buffer=0 xfb_offset=0) smooth temp float)
690:25          'arr' (layout( location=0 xfb_buffer=0 xfb_offset=0) smooth out 1-element array of float)
700:25          Constant:
710:25            0 (const int)
720:25        Constant:
730:25          1.000000
740:26      move second child to first child ( temp float)
750:26        direct index (layout( location=1 xfb_buffer=1 xfb_offset=0) smooth temp float)
760:26          direct index (layout( location=1 xfb_buffer=1 xfb_offset=0) smooth temp 2-element array of float)
770:26            'nested' (layout( location=1 xfb_buffer=1 xfb_offset=0) smooth out 2-element array of 2-element array of float)
780:26            Constant:
790:26              0 (const int)
800:26          Constant:
810:26            0 (const int)
820:26        Constant:
830:26          2.000000
840:27      move second child to first child ( temp double)
850:27        direct index (layout( location=5 xfb_buffer=2 xfb_offset=0) smooth temp double)
860:27          'darr' (layout( location=5 xfb_buffer=2 xfb_offset=0) smooth out 1-element array of double)
870:27          Constant:
880:27            0 (const int)
890:27        Constant:
900:27          3.000000
910:28      move second child to first child ( temp float16_t)
920:28        direct index (layout( location=7 xfb_buffer=3 xfb_offset=0) smooth temp float16_t)
930:28          'harr' (layout( location=7 xfb_buffer=3 xfb_offset=0) smooth out 1-element array of float16_t)
940:28          Constant:
950:28            0 (const int)
960:28        Constant:
970:28          4.000000
980:?   Linker Objects
990:?     'arr' (layout( location=0 xfb_buffer=0 xfb_offset=0) smooth out 1-element array of float)
1000:?     'nested' (layout( location=1 xfb_buffer=1 xfb_offset=0) smooth out 2-element array of 2-element array of float)
1010:?     'darr' (layout( location=5 xfb_buffer=2 xfb_offset=0) smooth out 1-element array of double)
1020:?     'harr' (layout( location=7 xfb_buffer=3 xfb_offset=0) smooth out 1-element array of float16_t)
1030:?     'gl_VertexID' ( gl_VertexId int VertexId)
1040:?     'gl_InstanceID' ( gl_InstanceId int InstanceId)
105