summaryrefslogtreecommitdiff
path: root/lib/mesa/src/broadcom/cle/v3d_packet_v33.xml
blob: 2fdc685ae51cf754dc284a3b2ca63ae1efb74223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
<vcxml gen="3.3" min_ver="33" max_ver="42">

  <enum name="Compare Function" prefix="V3D_COMPARE_FUNC">
    <value name="NEVER" value="0"/>
    <value name="LESS" value="1"/>
    <value name="EQUAL" value="2"/>
    <value name="LEQUAL" value="3"/>
    <value name="GREATER" value="4"/>
    <value name="NOTEQUAL" value="5"/>
    <value name="GEQUAL" value="6"/>
    <value name="ALWAYS" value="7"/>
  </enum>

  <enum name="Blend Factor" prefix="V3D_BLEND_FACTOR">
    <value name="ZERO" value="0"/>
    <value name="ONE" value="1"/>
    <value name="SRC_COLOR" value="2"/>
    <value name="INV_SRC_COLOR" value="3"/>
    <value name="DST_COLOR" value="4"/>
    <value name="INV_DST_COLOR" value="5"/>
    <value name="SRC_ALPHA" value="6"/>
    <value name="INV_SRC_ALPHA" value="7"/>
    <value name="DST_ALPHA" value="8"/>
    <value name="INV_DST_ALPHA" value="9"/>
    <value name="CONST_COLOR" value="10"/>
    <value name="INV_CONST_COLOR" value="11"/>
    <value name="CONST_ALPHA" value="12"/>
    <value name="INV_CONST_ALPHA" value="13"/>
    <value name="SRC_ALPHA_SATURATE" value="14"/>
  </enum>

  <enum name="Blend Mode" prefix="V3D_BLEND_MODE">
    <value name="ADD" value="0"/>
    <value name="SUB" value="1"/>
    <value name="RSUB" value="2"/>
    <value name="MIN" value="3"/>
    <value name="MAX" value="4"/>
    <value name="MUL" value="5"/>
    <value name="SCREEN" value="6"/>
    <value name="DARKEN" value="7"/>
    <value name="LIGHTEN" value="8"/>
  </enum>

  <enum name="Stencil Op" prefix="V3D_STENCIL_OP">
    <value name="ZERO" value="0"/>
    <value name="KEEP" value="1"/>
    <value name="REPLACE" value="2"/>
    <value name="INCR" value="3"/>
    <value name="DECR" value="4"/>
    <value name="INVERT" value="5"/>
    <value name="INCWRAP" value="6"/>
    <value name="DECWRAP" value="7"/>
  </enum>

  <enum name="Primitive" prefix="V3D_PRIM">
    <value name="POINTS" value="0"/>
    <value name="LINES" value="1"/>
    <value name="LINE_LOOP" value="2"/>
    <value name="LINE_STRIP" value="3"/>
    <value name="TRIANGLES" value="4"/>
    <value name="TRIANGLE_STRIP" value="5"/>
    <value name="TRIANGLE_FAN" value="6"/>
    <value name="POINTS_TF" value="16"/>
    <value name="LINES_TF" value="17"/>
    <value name="LINE_LOOP_TF" value="18"/>
    <value name="LINE_STRIP_TF" value="19"/>
    <value name="TRIANGLES_TF" value="20"/>
    <value name="TRIANGLE_STRIP_TF" value="21"/>
    <value name="TRIANGLE_FAN_TF" value="22"/>
  </enum>

  <enum name="TMU Filter" prefix="V3D_TMU_FILTER" max_ver="33">
    <!-- Names are mip filter, min filter, mag filter -->
    <value name="MIN_LIN_MIP_NONE_MAG_LIN" value="0"/>
    <value name="MIN_LIN_MIP_NONE_MAG_NEAR" value="1"/>
    <value name="MIN_NEAR_MIP_NONE_MAG_LIN" value="2"/>
    <value name="MIN_NEAR_MIP_NONE_MAG_NEAR" value="3"/>

    <value name="MIN_NEAR_MIP_NEAR_MAG_LIN" value="4"/>
    <value name="MIN_NEAR_MIP_NEAR_MAG_NEAR" value="5"/>
    <value name="MIN_NEAR_MIP_LIN_MAG_LIN" value="6"/>
    <value name="MIN_NEAR_MIP_LIN_MAG_NEAR" value="7"/>

    <value name="MIN_LIN_MIP_NEAR_MAG_LIN" value="8"/>
    <value name="MIN_LIN_MIP_NEAR_MAG_NEAR" value="9"/>
    <value name="MIN_LIN_MIP_LIN_MAG_LIN" value="10"/>
    <value name="MIN_LIN_MIP_LIN_MAG_NEAR" value="11"/>

    <value name="ANISOTROPIC_2_1" value="12"/>
    <value name="ANISOTROPIC_4_1" value="13"/>
    <value name="ANISOTROPIC_8_1" value="14"/>
    <value name="ANISOTROPIC_16_1" value="15"/>
  </enum>

  <enum name="Border Color Mode" prefix="V3D_BORDER_COLOR" min_ver="41">
    <value name="0000" value="0"/>
    <value name="0001" value="1"/>
    <value name="1111" value="2"/>
    <value name="Follows" value="7"/>
  </enum>

  <enum name="Wrap Mode" prefix="V3D_WRAP_MODE">
      <value name="REPEAT" value="0"/>
      <value name="CLAMP" value="1"/>
      <value name="MIRROR" value="2"/>
      <value name="BORDER" value="3"/>
      <value name="MIRROR_ONCE" value="4"/>
  </enum>

  <enum name="TMU Op" prefix="V3D_TMU_OP" min_ver="41">
    <value name="Write ADD, Read Prefetch" value="0"/>
    <value name="Write SUB, Read Clear" value="1"/>
    <value name="Write XCHG, Read Flush" value="2"/>
    <value name="Write CMPXCHG, Read Flush" value="3"/>
    <value name="Write UMIN, Full L1 Clear" value="4"/>
    <value name="Write UMAX" value="5"/>
    <value name="Write SMIN" value="6"/>
    <value name="Write SMAX" value="7"/>
    <value name="Write AND, Read INC" value="8"/>
    <value name="Write OR, Read DEC" value="9"/>
    <value name="Write XOR, Read NOT" value="10"/>
    <value name="Regular" value="15"/>
  </enum>

  <enum name="Varying Flags Action" prefix="V3D_VARYING_FLAGS_ACTION">
    <value name="unchanged" value="0"/>
    <value name="zeroed" value="1"/>
    <value name="set" value="2"/>
  </enum>

  <enum name="Memory Format" prefix="V3D_MEMORY_FORMAT">
    <value name="Raster" value="0"/>
    <value name="Lineartile" value="1"/>
    <value name="UB-linear (1 UIF block wide)" value="2"/>
    <value name="UB-linear (2 UIF blocks wide)" value="3"/>
    <value name="UIF (No XOR)" value="4"/>
    <value name="UIF (XOR)" value="5"/>
  </enum>

  <enum name="Decimate Mode" prefix="V3D_DECIMATE_MODE">
    <value name="sample 0" value="0"/>
    <value name="4x" value="1"/>
    <value name="all samples" value="3"/>
  </enum>

  <enum name="Internal Type" prefix="V3D_INTERNAL_TYPE">
    <value name="8i" value="0"/>
    <value name="8ui" value="1"/>
    <value name="8" value="2"/>
    <value name="16i" value="4"/>
    <value name="16ui" value="5"/>
    <value name="16f" value="6"/>
    <value name="32i" value="8"/>
    <value name="32ui" value="9"/>
    <value name="32f" value="10"/>
  </enum>

  <enum name="Internal BPP" prefix="V3D_INTERNAL_BPP">
    <value name="32" value="0"/>
    <value name="64" value="1"/>
    <value name="128" value="2"/>
  </enum>

  <enum name="Internal Depth Type" prefix="V3D_INTERNAL_TYPE">
    <value name="depth_32f" value="0"/>
    <value name="depth_24" value="1"/>
    <value name="depth_16" value="2"/>
  </enum>

  <enum name="Render Target Clamp" prefix="V3D_RENDER_TARGET_CLAMP" min_ver="41">
    <value name="none" value="0"/> <!-- no clamping -->
    <value name="norm" value="1"/> <!-- [0,1] for f16 -->
    <value name="pos" value="2"/> <!-- [0, for f16 -->
    <value name="int" value="3" min_ver="42"/> <!-- clamp to integer RT's range -->
  </enum>

  <!---
    CL cache flush commands are not fully documented and subject to a
    number of hardware issues that make them unreliable. Specifically:

    * The L2T flush command has a 'deferred' bit to ensure the command
      doesn't execute until all other commands in the CL have completed,
      which is required to achieve the expected behavior. This bit comes
      right after the mode field.

    * GFXH-1895: Overlapping write combiner flush requests from different
      sources are not safe. If two flush requests from different sources
      overlap, the TMU may send the done signal for the first flush back to
      the wrong source.

    * GFXH-1888: It is possible for a regular access to sneak past a
      pending L2T flush. If an L2T flush is requested via L2TCACTL while a
      CLE-requested flush is in progress, it is possible for a regular
      access to sneak through in the gap between the CLE flush and the
      L2TCACTL flush.

    * GFXH-1897: Writing 0 to L2TCACTL clobbers in-progress flush status.
      Writing 0 to TMUWCF (bit 8) clears the TMUWCF bit, even if a write
      combiner flush is still in progress. Similarly, writing 0 to L2TFLS
      (bit 0) clears the L2TFLS bit, even if an L2T flush is still in
      progress. Writing 0 to L2TFLM (bits 1..2) overwrites the flush mode,
      even if a flush is not being requested (ie 0 is being written to
      L2TFLS). If the last flush has not yet made it through the L2T
      arbiter, this will change the mode of that flush.

    GFXH-1888 and GFXH-1897 are problematic when we don't wait for L2T
    flushes requested via LATCACTL to complete immediately.

    Because of this, the driver will do all of its flushing via the kernel
    using L2TCACTL instead of using the CL commands.
  -->
  <enum name="L2T Flush Mode" prefix="L2T_FLUSH_MODE">
    <!-- invalidates all cache lines -->
    <value name="flush" value="0"/>
    <!-- Invalidates dirty cachelines without writeback -->
    <value name="clear" value="1"/>
    <!-- Writes back dirty cachelines and marks them clean, without
         invalidating -->
    <value name="clean" value="2"/>
  </enum>

  <enum name="Output Image Format" prefix="V3D_OUTPUT_IMAGE_FORMAT">
    <!--
	Formats appear with their channels named from the low bits to
	the high bits.
    -->
    <value name="srgb8_alpha8" value="0"/>
    <value name="srgb" value="1"/>
    <value name="rgb10_a2ui" value="2"/>
    <value name="rgb10_a2" value="3"/>
    <value name="abgr1555" value="4"/>
    <value name="alpha-masked abgr1555" value="5"/>
    <value name="abgr4444" value="6"/>
    <value name="bgr565" value="7"/>
    <value name="r11f_g11f_b10f" value="8"/>
    <value name="rgba32f"  value="9"/>
    <value name="rg32f"    value="10"/>
    <value name="r32f"     value="11"/>
    <value name="rgba32i"  value="12"/>
    <value name="rg32i"    value="13"/>
    <value name="r32i"     value="14"/>
    <value name="rgba32ui" value="15"/>
    <value name="rg32ui"   value="16"/>
    <value name="r32ui"    value="17"/>
    <value name="rgba16f"  value="18"/>
    <value name="rg16f"    value="19"/>
    <value name="r16f"     value="20"/>
    <value name="rgba16i"  value="21"/>
    <value name="rg16i"    value="22"/>
    <value name="r16i"     value="23"/>
    <value name="rgba16ui" value="24"/>
    <value name="rg16ui"   value="25"/>
    <value name="r16ui"    value="26"/>
    <value name="rgba8"    value="27"/>
    <value name="rgb8"     value="28"/>
    <value name="rg8"      value="29"/>
    <value name="r8"       value="30"/>
    <value name="rgba8i"   value="31"/>
    <value name="rg8i"     value="32"/>
    <value name="r8i"      value="33"/>
    <value name="rgba8ui"  value="34"/>
    <value name="rg8ui"    value="35"/>
    <value name="r8ui"     value="36"/>
    <value name="srgbx8"   value="37" max_ver="33"/>
    <value name="rgbx8"    value="38" max_ver="33"/>
    <value name="bstc"     value="39" min_ver="41"/>
    <value name="d32f"     value="40" min_ver="41"/>
    <value name="d24"      value="41" min_ver="41"/>
    <value name="d16"      value="42" min_ver="41"/>
    <value name="d24s8"    value="43" min_ver="41"/>
    <value name="s8"       value="44" min_ver="41"/>
    <value name="rgba5551" value="45" min_ver="41"/>
  </enum>

  <enum name="Z/S Output Image Format" prefix="V3D_OUTPUT_IMAGE_FORMAT_ZS" max_ver="33">
    <value name="depth_component32f" value="0"/>
    <value name="depth_component24" value="1"/> <!-- depth low, pad high -->
    <value name="depth_component16" value="2"/>
    <value name="depth24_stencil8" value="3"/> <!-- stencil low, depth high -->
  </enum>

  <enum name="Dither Mode" prefix="V3D_DITHER_MODE">
    <value name="None" value="0"/>
    <value name="RGB" value="1"/>
    <value name="A" value="2"/>
    <value name="RGBA" value="3"/>
  </enum>

  <enum name="Pack Mode" prefix="V3D_PACK_MODE">
    <value name="16-way" value="0"/>
    <value name="8-way" value="1"/>
    <value name="4-way" value="2"/>
    <value name="1-way" value="3"/>
  </enum>

  <enum name="TCS flush mode" prefix="V3D_TCS_FLUSH_MODE">
    <value name="fully packed" value="0"/>
    <value name="single patch" value="1"/>
    <value name="packed complete patches" value="2"/>
  </enum>

  <enum name="Primitve counters" prefix="V3D_PRIM_COUNTS">
    <value name="tf_words_buffer0" value="0"/>
    <value name="tf_words_buffer1" value="1"/>
    <value name="tf_words_buffer2" value="2"/>
    <value name="tf_words_buffer3" value="3"/>
    <value name="written" value="4"/>
    <value name="tf_written" value="5"/>
    <value name="tf_overflow" value="6"/>
  </enum>

  <packet code="0" name="Halt"/>
  <packet code="1" name="NOP"/>
  <packet code="4" name="Flush"/>
  <packet code="5" name="Flush All State"/>
  <packet code="6" name="Start Tile Binning"/>
  <packet code="7" shortname="incr_semaphore" name="Increment Semaphore"/>
  <packet code="8" shortname="wait_semaphore" name="Wait on Semaphore"/>
  <packet code="9" shortname="wait_prev_frame" name="Wait for previous frame"/>
  <packet code="10" shortname="enable_z_only" name="Enable Z-only rendering" cl="R"/>
  <packet code="11" shortname="disable_z_only" name="Disable Z-only rendering" cl="R"/>
  <packet code="12" shortname="end_z_only" name="End of Z-only rendering in frame"/>
  <packet code="13" shortname="end_render" name="End of rendering"/>

  <packet code="14" shortname="wait_transform_feedback" name="Wait for transform feedback" cl="B">
    <field name="Block count" size="8" start="0" type="uint"/>
  </packet>

  <packet code="15" shortname="branch_sub_autochain" name="Branch to auto-chained sub-list">
    <field name="address" size="32" start="0" type="address"/>
  </packet>

  <packet code="16" name="Branch">
    <field name="address" size="32" start="0" type="address"/>
  </packet>

  <packet code="17" shortname="branch_sub" name="Branch to Sub-list">
    <field name="address" size="32" start="0" type="address"/>
  </packet>

  <packet code="18" shortname="return" name="Return from sub-list"/>
  <packet code="19" shortname="clear_vcd_cache" name="Flush VCD cache"/>

  <packet code="20" shortname="generic_tile_list" name="Start Address of Generic Tile List">
    <field name="start" size="32" start="0" type="address"/>
    <field name="end" size="32" start="32" type="address"/>
  </packet>

  <packet code="21" shortname="branch_implicit_tile" name="Branch to Implicit Tile List">
    <field name="tile list set number" size="8" start="0" type="uint"/>
  </packet>

  <packet code="22" shortname="branch_explicit_supertile" name="Branch to Explicit Supertile">
    <field name="Absolute address of explicit supertile render list" size="32" start="24" type="address"/>
    <field name="explicit supertile number" size="8" start="16" type="uint"/>
    <field name="row number" size="8" start="8" type="uint"/>
    <field name="column number" size="8" start="0" type="uint"/>
  </packet>

  <packet code="23" shortname="supertile_coords" name="Supertile Coordinates">
    <field name="row number in supertiles" size="8" start="8" type="uint"/>
    <field name="column number in supertiles" size="8" start="0" type="uint"/>
  </packet>

  <packet code="24" shortname="store_subsample" name="Store Multi-Sample Resolved Tile Color Buffer" cl="R" max_ver="33"/>

  <packet code="25" shortname="store_subsample_ex" name="Store Multi-Sample Resolved Tile Color Buffer (extended)" cl="R" max_ver="33">
    <field name="Disable Color Buffer write" size="8" start="8" type="uint"/>
    <field name="Enable Z write" size="1" start="7" type="bool"/>
    <field name="Enable Stencil write" size="1" start="6" type="bool"/>
    <!-- bit 5 unused -->
    <field name="Disable Color buffer(s) clear on write" size="1" start="4" type="bool"/>
    <field name="Disable Stencil buffer clear on write" size="1" start="3" type="bool"/>
    <field name="Disable Z buffer clear on write" size="1" start="2" type="bool"/>
    <field name="Disable fast opportunistic write out in multisample mode" size="1" start="1" type="bool"/>
    <field name="Last Tile of Frame" size="1" start="0" type="bool"/>
  </packet>

  <packet code="25" shortname="clear" name="Clear Tile Buffers" cl="R" min_ver="41">
    <field name="Clear Z/Stencil Buffer" size="1" start="1" type="bool"/>
    <field name="Clear all Render Targets" size="1" start="0" type="bool"/>
  </packet>

  <packet code="26" shortname="load" name="Reload Tile Color Buffer" cl="R" max_ver="33">
    <field name="Disable Color Buffer load" size="8" start="8" type="uint"/>
    <field name="Enable Z load" size="1" start="7" type="bool"/>
    <field name="Enable Stencil load" size="1" start="6" type="bool"/>
  </packet>

  <packet code="26" shortname="end_loads" name="End of Loads" cl="R" min_ver="41"/>

  <packet code="27" shortname="end_tile" name="End of Tile Marker" cl="R"/>

  <packet code="29" shortname="store_general" name="Store Tile Buffer General" cl="R" max_ver="33">
    <field name="Address" size="24" start="24" type="address"/>
    <field name="Padded height of output image in UIF blocks" size="13" start="11" type="uint"/>
    <field name="XOR UIF" size="1" start="10" type="bool"/>
    <field name="Last Tile of Frame" size="1" start="8" type="bool"/>
    <field name="Disable Color buffer(s) clear on write" size="1" start="7" type="bool"/>
    <field name="Disable Stencil buffer clear on write" size="1" start="6" type="bool"/>
    <field name="Disable Z buffer clear on write" size="1" start="5" type="bool"/>
    <field name="Raw Mode" size="1" start="4" type="bool"/>
    <field name="Buffer to Store" size="4" start="0" type="uint">
      <value name="Render target 0" value="0"/>
      <value name="Render target 1" value="1"/>
      <value name="Render target 2" value="2"/>
      <value name="Render target 3" value="3"/>
      <value name="None" value="8"/>
      <value name="Z" value="9"/>
      <value name="Stencil" value="10"/>
      <value name="Z+Stencil" value="11"/>
    </field>
  </packet>

  <packet code="29" shortname="store" name="Store Tile Buffer General" cl="R" min_ver="41">
    <field name="Address" size="32" start="64" type="address"/>

    <!-- used for y flip -->
    <field name="Height" size="16" start="48" type="uint"/>

    <!-- height in ub for UIF, byte stride for raster -->
    <field name="Height in UB or Stride" size="20" start="28" type="uint"/>

    <field name="R/B swap" size="1" start="20" type="bool"/>
    <field name="Channel Reverse" size="1" start="19" type="bool"/>
    <field name="Clear buffer being stored" size="1" start="18" type="bool"/>
    <field name="Output Image Format" size="6" start="12" type="Output Image Format"/>

    <field name="Decimate mode" size="2" start="10" type="Decimate Mode"/>

    <field name="Dither Mode" size="2" start="8" type="Dither Mode"/>

    <field name="Flip Y" size="1" start="7" type="bool"/>

    <field name="Memory Format" size="3" start="4" type="Memory Format"/>
    <field name="Buffer to Store" size="4" start="0" type="uint">
      <value name="Render target 0" value="0"/>
      <value name="Render target 1" value="1"/>
      <value name="Render target 2" value="2"/>
      <value name="Render target 3" value="3"/>
      <value name="None" value="8"/>
      <value name="Z" value="9"/>
      <value name="Stencil" value="10"/>
      <value name="Z+Stencil" value="11"/>
    </field>
  </packet>

  <packet code="30" shortname="load_general" name="Load Tile Buffer General" cl="R" max_ver="33">
    <field name="Address" size="24" start="24" type="address"/>
    <field name="Padded height of output image in UIF blocks" size="13" start="11" type="uint"/>
    <field name="XOR UIF" size="1" start="10" type="bool"/>
    <field name="Raw Mode" size="1" start="4" type="bool"/>
    <field name="Buffer to Load" size="4" start="0" type="uint">
      <value name="Render target 0" value="0"/>
      <value name="Render target 1" value="1"/>
      <value name="Render target 2" value="2"/>
      <value name="Render target 3" value="3"/>
      <value name="None" value="8"/>
      <value name="Z" value="9"/>
      <value name="Stencil" value="10"/>
      <value name="Z+Stencil" value="11"/>
    </field>
  </packet>

  <packet code="30" shortname="load" name="Load Tile Buffer General" cl="R" min_ver="41">
    <field name="Address" size="32" start="64" type="address"/>

    <!-- used for y flip -->
    <field name="Height" size="16" start="48" type="uint"/>

    <!-- height in ub for UIF, byte stride for raster -->
    <field name="Height in UB or Stride" size="20" start="28" type="uint"/>

    <field name="R/B swap" size="1" start="20" type="bool"/>
    <field name="Channel Reverse" size="1" start="19" type="bool"/>
    <field name="Force alpha 1" size="1" start="18" type="bool"/>

    <field name="Input Image Format" size="6" start="12" type="Output Image Format"/>

    <field name="Decimate mode" size="2" start="10" type="Decimate Mode"/>

    <field name="Flip Y" size="1" start="7" type="bool"/>

    <field name="Memory Format" size="3" start="4" type="Memory Format"/>
    <field name="Buffer to Load" size="4" start="0" type="uint">
      <value name="Render target 0" value="0"/>
      <value name="Render target 1" value="1"/>
      <value name="Render target 2" value="2"/>
      <value name="Render target 3" value="3"/>
      <value name="None" value="8"/>
      <value name="Z" value="9"/>
      <value name="Stencil" value="10"/>
      <value name="Z+Stencil" value="11"/>
    </field>
  </packet>

  <packet code="31" shortname="tf_draw_flush_and_count" name="Transform Feedback Flush and Count"/>

  <packet code="32" name="Indexed Prim List" cl="B" max_ver="33">
    <field name="Minimum index" size="32" start="104" type="uint"/>
    <field name="Enable Primitive Restarts" size="1" start="103" type="bool"/>
    <field name="Maximum index" size="31" start="72" type="uint"/>
    <field name="Address of Indices List" size="32" start="40" type="address"/>
    <field name="Length" size="32" start="8" type="uint"/>

    <field name="Index type" size="2" start="6" type="uint">
      <value name="Index type 8-bit" value="0"/>
      <value name="Index type 16-bit" value="1"/>
      <value name="Index type 32-bit" value="2"/>
    </field>

    <field name="mode" size="5" start="0" type="Primitive"/>
  </packet>

  <packet code="32" name="Indexed Prim List" cl="B" min_ver="41">
    <field name="Index Offset" size="32" start="40" type="uint"/>

    <field name="Enable Primitive Restarts" size="1" start="39" type="bool"/>
    <field name="Length" size="31" start="8" type="uint"/>

    <field name="Index type" size="2" start="6" type="uint">
      <value name="Index type 8-bit" value="0"/>
      <value name="Index type 16-bit" value="1"/>
      <value name="Index type 32-bit" value="2"/>
    </field>

    <field name="mode" size="6" start="0" type="Primitive"/>
  </packet>

  <packet code="33" name="Indirect Indexed Instanced Prim List" cl="B" max_ver="33">
    <field name="Stride in Multiples of 4 Bytes" size="8" start="104" type="uint"/>
    <field name="Address of Indices List" size="32" start="72" type="address"/>
    <field name="Address" size="32" start="40" type="address"/>
    <field name="Enable Primitive Restarts" size="1" start="39" type="bool"/>
    <field name="Number of Draw Indirect Indexed Records" size="31" start="8" type="uint"/>

    <field name="Index type" size="2" start="6" type="uint">
      <value name="Index type 8-bit" value="0"/>
      <value name="Index type 16-bit" value="1"/>
      <value name="Index type 32-bit" value="2"/>
    </field>

    <field name="mode" size="6" start="0" type="Primitive"/>
  </packet>

  <packet code="33" name="Indirect Indexed Instanced Prim List" cl="B" min_ver="41">
    <field name="Stride in Multiples of 4 Bytes" size="8" start="72" type="uint"/>
    <field name="Address" size="32" start="40" type="address"/>
    <field name="Enable Primitive Restarts" size="1" start="39" type="bool"/>
    <field name="Number of Draw Indirect Indexed Records" size="31" start="8" type="uint"/>

    <field name="Index type" size="2" start="6" type="uint">
      <value name="Index type 8-bit" value="0"/>
      <value name="Index type 16-bit" value="1"/>
      <value name="Index type 32-bit" value="2"/>
    </field>

    <field name="mode" size="6" start="0" type="Primitive"/>
  </packet>

  <packet code="34" name="Indexed Instanced Prim List" cl="B" max_ver="33">
    <field name="Enable Primitive Restarts" size="1" start="135" type="bool"/>
    <field name="Maximum index" size="31" start="104" type="uint"/>
    <field name="Address of Indices List" size="32" start="72" type="address"/>
    <field name="Number of Instances" size="32" start="40" type="uint"/>
    <field name="Instance Length" size="32" start="8" type="uint"/>

    <field name="Index type" size="2" start="6" type="uint">
      <value name="Index type 8-bit" value="0"/>
      <value name="Index type 16-bit" value="1"/>
      <value name="Index type 32-bit" value="2"/>
    </field>

    <field name="mode" size="5" start="0" type="Primitive"/>
  </packet>

  <packet code="34" name="Indexed Instanced Prim List" cl="B" min_ver="41">
    <field name="Index Offset" size="32" start="72" type="uint"/>
    <field name="Number of Instances" size="32" start="40" type="uint"/>
    <field name="Enable Primitive Restarts" size="1" start="39" type="bool"/>
    <field name="Instance Length" size="31" start="8" type="uint"/>

    <field name="Index type" size="2" start="6" type="uint">
      <value name="Index type 8-bit" value="0"/>
      <value name="Index type 16-bit" value="1"/>
      <value name="Index type 32-bit" value="2"/>
    </field>

    <field name="mode" size="6" start="0" type="Primitive"/>
  </packet>

  <packet code="36" name="Vertex Array Prims" cl="B">
    <field name="Index of First Vertex" size="32" start="40" type="uint"/>
    <field name="Length" size="32" start="8" type="uint"/>

    <field name="mode" size="8" start="0" type="Primitive"/>
  </packet>

  <packet code="37" name="Indirect Vertex Array Instanced Prims" cl="B">
    <field name="Stride in Multiples of 4 Bytes" size="8" start="72" type="uint"/>
    <field name="Address" size="32" start="40" type="address"/>
    <field name="Number of Draw Indirect Array Records" size="32" start="8" type="uint"/>

    <field name="mode" size="8" start="0" type="Primitive"/>
  </packet>

  <packet code="38" name="Vertex Array Instanced Prims" cl="B">
    <field name="Index of First Vertex" size="32" start="72" type="uint"/>
    <field name="Number of Instances" size="32" start="40" type="uint"/>
    <field name="Instance Length" size="32" start="8" type="uint"/>

    <field name="mode" size="8" start="0" type="Primitive"/>
  </packet>

  <packet code="39" name="Vertex Array Single Instance Prims" cl="B">
    <field name="Index of First Vertex" size="32" start="72" type="uint"/>
    <field name="Instance ID" size="32" start="40" type="uint"/>
    <field name="Instance Length" size="32" start="8" type="uint"/>

    <field name="mode" size="8" start="0" type="Primitive"/>
  </packet>

  <packet code="43" name="Base Vertex Base Instance" cl="B">
    <field name="Base Instance" size="32" start="32" type="uint"/>

    <field name="Base Vertex" size="32" start="0" type="uint"/>
  </packet>

  <packet code="44" name="Index Buffer Setup" cl="B" min_ver="41">
    <field name="Address" size="32" start="0" type="address"/>
    <field name="Size" size="32" start="32" type="uint"/>
  </packet>

  <packet code="54" name="Set InstanceID" cl="B" min_ver="41">
    <field name="Instance ID" size="32" start="0" type="uint"/>
  </packet>

  <packet code="55" name="Set PrimitiveID" cl="B" min_ver="41">
    <field name="Primitive ID" size="32" start="0" type="uint"/>
  </packet>

  <packet code="56" name="Prim List Format">
    <field name="tri strip or fan" size="1" start="7" type="bool"/>
    <field name="primitive type" size="6" start="0" type="uint">
      <value name="List Points" value="0"/>
      <value name="List Lines" value="1"/>
      <value name="List Triangles" value="2"/>
    </field>
  </packet>

  <packet code="57" name="Serial Number List Start">
    <field name="address" size="26" start="6" type="address"/>
    <field name="block size" size="2" start="0" type="uint">
      <value name="block size 64b" value="0"/>
      <value name="block size 128b" value="1"/>
      <value name="block size 256b" value="2"/>
    </field>
  </packet>

  <packet code="64" shortname="gl_shader" name="GL Shader State">
    <field name="address" size="27" start="5" type="address"/>
    <field name="number of attribute arrays" size="5" start="0" type="uint"/>
  </packet>

  <packet code="65" shortname="gl_t_shader" name="GL Shader State including TS" min_ver="41">
    <field name="address" size="27" start="5" type="address"/>
    <field name="number of attribute arrays" size="5" start="0" type="uint"/>
  </packet>

  <packet code="66" shortname="gl_g_shader" name="GL Shader State including GS" min_ver="41">
    <field name="address" size="27" start="5" type="address"/>
    <field name="number of attribute arrays" size="5" start="0" type="uint"/>
  </packet>

  <packet code="67" shortname="gl_tg_shader" name="GL Shader State including TS/GS" min_ver="41">
    <field name="address" size="27" start="5" type="address"/>
    <field name="number of attribute arrays" size="5" start="0" type="uint"/>
  </packet>

  <packet code="71" name="VCM Cache Size" min_ver="41">
    <field name="Number of 16-vertex batches for rendering" size="4" start="4" type="uint"/>
    <field name="Number of 16-vertex batches for binning" size="4" start="0" type="uint"/>
  </packet>

  <packet code="72" shortname="prim_counts_feedback" name="Primitive Counts Feedback">
    <field name="address" size="27" start="5" type="address"/>
    <field name="read/write 64byte" size="1" start="4" type="bool"/>
    <field name="op" size="4" start="0" type="uint">
      <!--
	  dword 0-3 are words written to TFB 0-3.  4 is prims generated, 5 is prims written, 6 is
	  prims overflowed
      -->
      <value name="store primitive counts" value="0"/>
      <value name="store primitive counts and zero" value="1"/>
      <!--
	  write 4 pairs of TFB state: remaining TFB space in buffer n, current address in buffer n
      -->
      <value name="store buffer state" value="2"/>
      <value name="store buffer state CL" value="3"/>
      <!--
	  Waits for buffer state stores to complete, then loads from
	  the given buffer state.  This op can be offset by n to skip
	  waiting for the last n.
      -->
      <value name="load buffer state" value="8"/>
    </field>
  </packet>

  <packet code="73" name="VCM Cache Size" max_ver="33">
    <field name="Number of 16-vertex batches for rendering" size="4" start="4" type="uint"/>
    <field name="Number of 16-vertex batches for binning" size="4" start="0" type="uint"/>
  </packet>

  <packet code="73" name="Transform Feedback Buffer" min_ver="41">
    <field name="Buffer Address" size="32" start="32" type="address"/>
    <field name="Buffer Size in 32-bit words" size="30" start="2" type="uint"/>
    <field name="Buffer Number" size="2" start="0" type="uint"/>
  </packet>

  <packet code="74" name="Transform Feedback Enable" max_ver="33">
    <field name="number of 32-bit Output Buffer Address following" size="3" start="8" type="uint"/>
    <field name="number of 16-bit Output Data Specs following" size="5" start="11" type="uint"/>
  </packet>

  <packet code="74" name="Transform Feedback Specs" min_ver="41">
    <field name="Enable" size="1" start="7" type="bool"/>
    <field name="Number of 16-bit Output Data Specs following" size="5" start="0" type="uint"/>
  </packet>

  <packet code="75" name="Flush Transform Feedback Data"/>

  <packet code="76" name="L1 Cache Flush Control">
    <field name="TMU Config Cache Clear" size="4" start="12" type="uint"/>
    <field name="TMU Data Cache Clear" size="4" start="8" type="uint"/>
    <field name="Uniforms Cache Clear" size="4" start="4" type="uint"/>
    <field name="Instruction Cache Clear" size="4" start="0" type="uint"/>
  </packet>

  <packet code="77" name="L2T Cache Flush Control">
    <field name="L2T Flush Mode" size="4" start="64" type="L2T Flush Mode"/>
    <field name="L2T Flush End" size="32" start="32" type="address"/>
    <field name="L2T Flush Start" size="32" start="0" type="address"/>
  </packet>

  <struct name="Transform Feedback Output Data Spec" max_ver="33">
    <field name="First Shaded Vertex Value to output" size="8" start="0" type="uint"/>
    <field name="Number of consecutive Vertex Values to output as 32-bit values" size="4" start="8" type="uint" minus_one="true"/>
    <field name="Output Buffer to write to" size="2" start="12" type="uint"/>
  </struct>

  <struct name="Transform Feedback Output Data Spec" min_ver="41">
    <field name="First Shaded Vertex Value to output" size="8" start="0" type="uint"/>
    <field name="Number of consecutive Vertex Values to output as 32-bit values" size="4" start="8" type="uint" minus_one="true"/>
    <field name="Output Buffer to write to" size="2" start="12" type="uint"/>
    <field name="Stream number" size="2" start="14" type="uint"/>
  </struct>

  <struct name="Transform Feedback Output Address">
    <field name="address" size="32" start="0" type="address"/>
  </struct>

  <packet code="80" name="Stencil Cfg">
    <field name="Stencil Write Mask" size="8" start="32" type="uint"/>
    <field name="Back Config" size="1" start="29" type="bool"/>
    <field name="Front Config" size="1" start="28" type="bool"/>
    <field name="Stencil Pass Op" size="3" start="25" type="Stencil Op"/>
    <field name="Depth Test Fail Op" size="3" start="22" type="Stencil Op"/>
    <field name="Stencil Test Fail Op" size="3" start="19" type="Stencil Op"/>
    <field name="Stencil Test Function" size="3" start="16" type="Compare Function"/>
    <field name="Stencil Test Mask" size="8" start="8" type="uint"/>
    <field name="Stencil Ref Value" size="8" start="0" type="uint"/>
  </packet>

  <packet code="83" name="Blend Enables" min_ver="41">
    <field name="Mask" size="8" start="0" type="uint"/>
  </packet>

  <packet code="84" name="Blend Cfg" max_ver="33">
    <field name="Color blend dst factor" size="4" start="20" type="Blend Factor"/>
    <field name="Color blend src factor" size="4" start="16" type="Blend Factor"/>
    <field name="Color blend mode" size="4" start="12" type="Blend Mode"/>
    <field name="Alpha blend dst factor" size="4" start="8" type="Blend Factor"/>
    <field name="Alpha blend src factor" size="4" start="4" type="Blend Factor"/>
    <field name="Alpha blend mode" size="4" start="0" type="Blend Mode"/>
  </packet>

  <packet code="84" name="Blend Cfg" min_ver="41">
    <field name="Render Target Mask" size="4" start="24" type="uint"/>
    <field name="Color blend dst factor" size="4" start="20" type="Blend Factor"/>
    <field name="Color blend src factor" size="4" start="16" type="Blend Factor"/>
    <field name="Color blend mode" size="4" start="12" type="Blend Mode"/>
    <field name="Alpha blend dst factor" size="4" start="8" type="Blend Factor"/>
    <field name="Alpha blend src factor" size="4" start="4" type="Blend Factor"/>
    <field name="Alpha blend mode" size="4" start="0" type="Blend Mode"/>
  </packet>

  <packet code="86" shortname="blend_ccolor" name="Blend Constant Color">
    <field name="Alpha (F16)" size="16" start="48" type="uint"/>
    <field name="Blue (F16)" size="16" start="32" type="uint"/>
    <field name="Green (F16)" size="16" start="16" type="uint"/>
    <field name="Red (F16)" size="16" start="0" type="uint"/>
  </packet>

  <packet code="87" shortname="color_wmasks" name="Color Write Masks">
    <field name="Mask" size="32" start="0" type="uint"/>
  </packet>

  <packet code="88" name="Zero All Centroid Flags" min_ver="41"/>

  <packet code="89" name="Centroid Flags" min_ver="41">
    <field name="Centroid Flags for varyings V0*24" size="24" start="8" type="uint"/>
    <field name="Action for Centroid Flags of higher numbered varyings" size="2" start="6" type="Varying Flags Action"/>
    <field name="Action for Centroid Flags of lower numbered varyings" size="2" start="4" type="Varying Flags Action"/>
    <field name="Varying offset V0" size="4" start="0" type="uint"/>
  </packet>

  <packet code="91" name="Sample State" min_ver="41">
    <field name="Coverage" size="16" start="16" type="f187"/>
    <field name="Mask" size="4" start="0" type="uint"/>
  </packet>

  <packet code="92" shortname="occlusion_query_counter_enable" name="Occlusion Query Counter">
    <field name="address" size="32" start="0" type="address"/>
  </packet>

  <packet code="96" name="Cfg Bits">
    <field name="Direct3D Provoking Vertex" size="1" start="21" type="bool"/>
    <field name="Direct3D 'Point-fill' mode" size="1" start="20" type="bool"/>
    <field name="Blend enable" size="1" start="19" type="bool"/>
    <field name="Stencil enable" size="1" start="18" type="bool"/>
    <field name="Early Z updates enable" size="1" start="17" type="bool"/>
    <field name="Early Z enable" size="1" start="16" type="bool"/>
    <field name="Z updates enable" size="1" start="15" type="bool"/>
    <field name="Depth-Test Function" size="3" start="12" type="Compare Function"/>
    <field name="Direct3D Wireframe triangles mode" size="1" start="11" type="bool"/>
    <field name="Rasterizer Oversample Mode" size="2" start="6" type="uint"/>
    <field name="Line Rasterization" size="2" start="4" type="uint"/>
    <field name="Enable Depth Offset" size="1" start="3" type="bool"/>
    <field name="Clockwise Primitives" size="1" start="2" type="bool"/>
    <field name="Enable Reverse Facing Primitive" size="1" start="1" type="bool"/>
    <field name="Enable Forward Facing Primitive" size="1" start="0" type="bool"/>
  </packet>

  <packet code="97" shortname="zero_all_flatshade_flags" name="Zero All Flat Shade Flags"/>

  <packet code="98" shortname="flatshade_flags" name="Flat Shade Flags">
    <field name="Flat Shade Flags for varyings V0*24" size="24" start="8" type="uint"/>
    <field name="Action for Flat Shade Flags of higher numbered varyings" size="2" start="6" type="Varying Flags Action"/>
    <field name="Action for Flat Shade Flags of lower numbered varyings" size="2" start="4" type="Varying Flags Action"/>
    <field name="Varying offset V0" size="4" start="0" type="uint"/>
  </packet>

  <packet code="99" shortname="zero_all_noperspective_flags" name="Zero All Non-perspective Flags" min_ver="41"/>

  <packet code="100" shortname="noperspective_flags" name="Non-perspective Flags" min_ver="41">
    <field name="Non-perspective Flags for varyings V0*24" size="24" start="8" type="uint"/>
    <field name="Action for Non-perspective Flags of higher numbered varyings" size="2" start="6" type="Varying Flags Action"/>
    <field name="Action for Non-perspective Flags of lower numbered varyings" size="2" start="4" type="Varying Flags Action"/>
    <field name="Varying offset V0" size="4" start="0" type="uint"/>
  </packet>

  <packet code="104" name="Point size">
    <field name="Point Size" size="32" start="0" type="float"/>
  </packet>

  <packet code="105" name="Line width">
    <field name="Line width" size="32" start="0" type="float"/>
  </packet>

  <packet name="Depth Offset" code="106" max_ver="33">
    <field name="Depth Offset Units" size="16" start="16" type="f187"/>
    <field name="Depth Offset Factor" size="16" start="0" type="f187"/>
  </packet>

  <packet name="Depth Offset" code="106" min_ver="41">
    <field name="Limit" size="32" start="32" type="float"/>
    <field name="Depth Offset Units" size="16" start="16" type="f187"/>
    <field name="Depth Offset Factor" size="16" start="0" type="f187"/>
  </packet>

  <packet shortname="clip" name="clip_window" code="107">
    <field name="Clip Window Height in pixels" size="16" start="48" type="uint"/>
    <field name="Clip Window Width in pixels" size="16" start="32" type="uint"/>
    <field name="Clip Window Bottom Pixel Coordinate" size="16" start="16" type="uint"/>
    <field name="Clip Window Left Pixel Coordinate" size="16" start="0" type="uint"/>
  </packet>

  <packet name="Viewport Offset" code="108" max_ver="33">
    <field name="Viewport Centre Y-coordinate" size="32" start="32" type="s24.8"/>
    <field name="Viewport Centre X-coordinate" size="32" start="0" type="s24.8"/>
  </packet>

  <packet name="Viewport Offset" code="108" min_ver="41">
    <field name="Coarse Y" size="10" start="54" type="uint"/>
    <field name="Viewport Centre Y-coordinate" size="22" start="32" type="s14.8"/>
    <field name="Coarse X" size="10" start="22" type="uint"/>
    <field name="Viewport Centre X-coordinate" size="22" start="0" type="s14.8"/>
  </packet>

  <packet shortname="clipz" name="Clipper Z min/max clipping planes" code="109">
    <field name="Maximum Zw" size="32" start="32" type="float"/>
    <field name="Minimum Zw" size="32" start="0" type="float"/>
  </packet>

  <packet shortname="clipper_xy" name="Clipper XY Scaling" code="110" cl="B">
    <field name="Viewport Half-Height in 1/256th of pixel" size="32" start="32" type="float"/>
    <field name="Viewport Half-Width in 1/256th of pixel" size="32" start="0" type="float"/>
  </packet>

  <packet shortname="clipper_z" name="Clipper Z Scale and Offset" code="111" cl="B">
    <field name="Viewport Z Offset (Zc to Zs)" size="32" start="32" type="float"/>
    <field name="Viewport Z Scale (Zc to Zs)" size="32" start="0" type="float"/>
  </packet>

  <packet name="Number of Layers" code="119" min_ver="41">
    <field name="Number of Layers" size="8" start="0" type="uint" minus_one="true"/>
  </packet>

  <packet code="120" name="Tile Binning Mode Cfg (Part1)" max_ver="33">
    <field name="Double-buffer in non-ms mode" size="1" start="63" type="bool"/>
    <field name="Multisample Mode (4x)" size="1" start="62" type="bool"/>

    <field name="Maximum BPP of all render targets" size="2" start="60" type="Internal BPP"/>

    <field name="Number of Render Targets" size="4" start="56" type="uint"/>
    <field name="Height (in tiles)" size="12" start="44" type="uint"/>
    <field name="Width (in tiles)" size="12" start="32" type="uint"/>

    <field name="Tile State Data Array Base Address" size="26" start="6" type="address"/>

    <field name="tile allocation block size" size="2" start="4" type="uint">
      <value name="tile allocation block size 64b" value="0"/>
      <value name="tile allocation block size 128b" value="1"/>
      <value name="tile allocation block size 256b" value="2"/>
    </field>
    <field name="tile allocation initial block size" size="2" start="2" type="uint">
      <value name="tile allocation initial block size 64b" value="0"/>
      <value name="tile allocation initial block size 128b" value="1"/>
      <value name="tile allocation initial block size 256b" value="2"/>
    </field>
    <field name="auto-initialize tile state data array" size="1" start="1" type="bool" default="1"/>
    <field name="sub-id" size="1" start="0" type="uint" default="0"/>
  </packet>

  <packet code="120" name="Tile Binning Mode Cfg" min_ver="41">

    <field name="Height (in pixels)" size="16" start="48" type="uint" minus_one="true"/>
    <field name="Width (in pixels)" size="16" start="32" type="uint" minus_one="true"/>

    <field name="Double-buffer in non-ms mode" size="1" start="15" type="bool"/>
    <field name="Multisample Mode (4x)" size="1" start="14" type="bool"/>

    <field name="Maximum BPP of all render targets" size="2" start="12" type="uint">
      <value name="Render target maximum 32bpp" value="0"/>
      <value name="Render target maximum 64bpp" value="1"/>
      <value name="Render target maximum 128bpp" value="2"/>
    </field>

    <field name="Number of Render Targets" size="4" start="8" type="uint" minus_one="true"/>

    <field name="tile allocation block size" size="2" start="4" type="uint">
      <value name="tile allocation block size 64b" value="0"/>
      <value name="tile allocation block size 128b" value="1"/>
      <value name="tile allocation block size 256b" value="2"/>
    </field>
    <field name="tile allocation initial block size" size="2" start="2" type="uint">
      <value name="tile allocation initial block size 64b" value="0"/>
      <value name="tile allocation initial block size 128b" value="1"/>
      <value name="tile allocation initial block size 256b" value="2"/>
    </field>
  </packet>

  <packet code="120" name="Tile Binning Mode Cfg (Part2)" cl="B" max_ver="33">
    <field name="Tile Allocation Memory Address" size="32" start="32" type="address"/>
    <field name="Tile Allocation Memory Size" size="32" start="0" type="uint"/>

    <field name="sub-id" size="1" start="0" type="uint" default="1"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Common)" cl="R" max_ver="33">
    <field name="Disable Render Target Stores" size="8" start="56" type="uint"/>
    <field name="Enable Z Store" size="1" start="55" type="bool"/>
    <field name="Enable Stencil Store" size="1" start="54" type="bool"/>

    <field name="Early-Z disable" size="1" start="46" type="bool"/>

    <field name="Early-Z Test and Update Direction" size="1" start="45" type="uint">
      <value name="Early-Z direction LT/LE" value="0"/>
      <value name="Early-Z direction GT/GE" value="1"/>
    </field>

    <field name="Double-buffer in non-ms mode" size="1" start="43" type="bool"/>
    <field name="Multisample Mode (4x)" size="1" start="42" type="bool"/>

    <field name="Maximum BPP of all render targets" size="2" start="40" type="uint">
      <value name="Render target maximum 32bpp" value="0"/>
      <value name="Render target maximum 64bpp" value="1"/>
      <value name="Render target maximum 128bpp" value="2"/>
    </field>

    <field name="Image Height (pixels)" size="16" start="24" type="uint"/>
    <field name="Image Width (pixels)" size="16" start="8" type="uint"/>
    <field name="Number of Render Targets" size="4" start="4" type="uint" minus_one="true"/>

    <field name="sub-id" size="4" start="0" type="uint" default="0"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Common)" cl="R" min_ver="41">
    <field name="Pad" size="12" start="52" type="uint"/>

    <field name="Early Depth/Stencil Clear" size="1" start="51" type="bool"/>
    <field name="Internal Depth Type" size="4" start="47" type="Internal Depth Type"/>

    <field name="Early-Z disable" size="1" start="46" type="bool"/>

    <field name="Early-Z Test and Update Direction" size="1" start="45" type="uint">
      <value name="Early-Z direction LT/LE" value="0"/>
      <value name="Early-Z direction GT/GE" value="1"/>
    </field>

    <field name="Double-buffer in non-ms mode" size="1" start="43" type="bool"/>
    <field name="Multisample Mode (4x)" size="1" start="42" type="bool"/>

    <field name="Maximum BPP of all render targets" size="2" start="40" type="Internal BPP"/>

    <field name="Image Height (pixels)" size="16" start="24" type="uint"/>
    <field name="Image Width (pixels)" size="16" start="8" type="uint"/>
    <field name="Number of Render Targets" size="4" start="4" type="uint" minus_one="true"/>

    <field name="sub-id" size="4" start="0" type="uint" default="0"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Color)" cl="R" max_ver="33">
    <field name="Address" size="32" start="32" type="address"/>

    <field name="Pad" size="4" start="28" type="uint"/>

    <field name="Flip Y" size="1" start="27" type="bool"/>

    <field name="Memory Format" size="3" start="24" type="Memory Format"/>

    <field name="Dither Mode" size="2" start="22" type="Dither Mode"/>

    <field name="Output image format" size="6" start="16" type="Output Image Format"/>

    <field name="Decimate mode" size="2" start="14" type="Decimate Mode"/>

    <field name="Internal Type" size="4" start="10" type="Internal Type"/>
    <field name="Internal BPP" size="2" start="8" type="Internal BPP"/>
    <field name="Render Target Number" size="4" start="4" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="2"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Color)" cl="R" min_ver="41">

    <field name="Pad" size="28" start="36" type="uint"/>

    <field name="Render Target 3 Clamp" size="2" start="34" type="Render Target Clamp"/>
    <field name="Render Target 3 Internal Type" size="4" start="30" type="Internal Type"/>
    <field name="Render Target 3 Internal BPP" size="2" start="28" type="Internal BPP"/>

    <field name="Render Target 2 Clamp" size="2" start="26" type="Render Target Clamp"/>
    <field name="Render Target 2 Internal Type" size="4" start="22" type="Internal Type"/>
    <field name="Render Target 2 Internal BPP" size="2" start="20" type="Internal BPP"/>

    <field name="Render Target 1 Clamp" size="2" start="18" type="Render Target Clamp"/>
    <field name="Render Target 1 Internal Type" size="4" start="14" type="Internal Type"/>
    <field name="Render Target 1 Internal BPP" size="2" start="12" type="Internal BPP"/>

    <field name="Render Target 0 Clamp" size="2" start="10" type="Render Target Clamp"/>
    <field name="Render Target 0 Internal Type" size="4" start="6" type="Internal Type"/>
    <field name="Render Target 0 Internal BPP" size="2" start="4" type="Internal BPP"/>

    <field name="sub-id" size="4" start="0" type="uint" default="1"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Z/Stencil)" cl="R" max_ver="33">
    <field name="Address" size="26" start="38" type="address"/>

    <field name="Padded height of output image in UIF blocks" size="13" start="25" type="uint"/>

    <field name="Memory Format" size="3" start="22" type="Memory Format"/>

    <field name="Output image format" size="6" start="16" type="Z/S Output Image Format"/>

    <field name="Decimate mode" size="2" start="14" type="uint"/>

    <field name="Internal Type" size="4" start="10" type="Internal Depth Type"/>

    <field name="Internal BPP (ignored)" size="2" start="8" type="uint"/>
    <!-- selects between Z/Stencil config packet and Separate Stencil packet. -->
    <field name="Z/Stencil ID" size="4" start="4" type="uint" default="0"/>
    <field name="sub-id" size="4" start="0" type="uint" default="1"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (ZS Clear Values)" cl="R" max_ver="33">
    <field name="unused" size="16" start="48" type="uint"/>

    <field name="Z Clear Value" size="32" start="16" type="float"/>

    <field name="Stencil Clear Value" size="8" start="8" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="3"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (ZS Clear Values)" cl="R" min_ver="41">
    <field name="unused" size="16" start="48" type="uint"/>

    <field name="Z Clear Value" size="32" start="16" type="float"/>

    <field name="Stencil Clear Value" size="8" start="8" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="2"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part1)" cl="R" max_ver="33">
    <!-- Express this as a 56-bit field? -->
    <field name="Clear Color next 24 bits" size="24" start="40" type="uint"/>
    <field name="Clear Color low 32 bits" size="32" start="8" type="uint"/>

    <field name="Render Target number" size="4" start="4" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="4"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part1)" cl="R" min_ver="41">
    <!-- Express this as a 56-bit field? -->
    <field name="Clear Color next 24 bits" size="24" start="40" type="uint"/>
    <field name="Clear Color low 32 bits" size="32" start="8" type="uint"/>

    <field name="Render Target number" size="4" start="4" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="3"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part2)" cl="R" max_ver="33">
    <!-- Express this as a 56-bit field? -->
    <field name="Clear Color mid-high 24 bits" size="24" start="40" type="uint"/>
    <field name="Clear Color mid-low 32 bits" size="32" start="8" type="uint"/>

    <field name="Render Target number" size="4" start="4" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="5"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part2)" cl="R" min_ver="41">
    <!-- Express this as a 56-bit field? -->
    <field name="Clear Color mid-high 24 bits" size="24" start="40" type="uint"/>
    <field name="Clear Color mid-low 32 bits" size="32" start="8" type="uint"/>

    <field name="Render Target number" size="4" start="4" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="4"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part3)" cl="R" max_ver="33">
    <field name="pad" size="11" start="53" type="uint"/>
    <field name="UIF padded height in UIF blocks" size="13" start="40" type="uint"/>
    <!-- image height is for Y flipping -->
    <field name="Raster Row Stride or Image Height in Pixels" size="16" start="24" type="uint"/>
    <field name="Clear Color high 16 bits" size="16" start="8" type="uint"/>

    <field name="Render Target number" size="4" start="4" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="6"/>
  </packet>

  <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part3)" cl="R" min_ver="41">
    <field name="pad" size="11" start="53" type="uint"/>
    <field name="UIF padded height in UIF blocks" size="13" start="40" type="uint"/>
    <!-- image height is for Y flipping -->
    <field name="Raster Row Stride or Image Height in Pixels" size="16" start="24" type="uint"/>
    <field name="Clear Color high 16 bits" size="16" start="8" type="uint"/>

    <field name="Render Target number" size="4" start="4" type="uint"/>
    <field name="sub-id" size="4" start="0" type="uint" default="5"/>
  </packet>

  <packet code="124" shortname="tile_coords" name="Tile Coordinates">
    <field name="tile row number" size="12" start="12" type="uint"/>
    <field name="tile column number" size="12" start="0" type="uint"/>
  </packet>

  <packet code="122" name="Multicore Rendering Supertile Cfg" cl="R">
    <field name="Number of Bin Tile Lists" size="3" start="61" type="uint" minus_one="true"/>
    <field name="Supertile Raster Order" size="1" start="60" type="bool"/>
    <field name="Multicore Enable" size="1" start="56" type="bool"/>

    <field name="Total Frame Height in Tiles" size="12" start="44" type="uint"/>
    <field name="Total Frame Width in Tiles" size="12" start="32" type="uint"/>

    <field name="Total Frame Height in Supertiles" size="8" start="24" type="uint"/>
    <field name="Total Frame Width in Supertiles" size="8" start="16" type="uint"/>

    <field name="Supertile Height in Tiles" size="8" start="8" type="uint" minus_one="true"/>
    <field name="Supertile Width in Tiles" size="8" start="0" type="uint" minus_one="true"/>
  </packet>

  <packet code="123" shortname="multicore_rendering_tile_list_base" name="Multicore Rendering Tile List Set Base" cl="R">
    <field name="address" size="26" start="6" type="address"/>
    <field name="Tile List Set Number" size="4" start="0" type="uint"/>
  </packet>

  <!-- add fields -->
  <packet code="125" shortname="implicit_tile_coords" name="Tile Coordinates Implicit"/>

  <packet code="126" name="Tile List Initial Block Size">
    <field name="Use auto-chained tile lists" size="1" start="2" type="bool"/>

    <field name="Size of first block in chained tile lists" size="2" start="0" type="uint">
      <value name="tile allocation block size 64b" value="0"/>
      <value name="tile allocation block size 128b" value="1"/>
      <value name="tile allocation block size 256b" value="2"/>
    </field>
  </packet>

  <struct name="GL Shader State Record" max_ver="33">
    <field name="Point size in shaded vertex data" size="1" start="0" type="bool"/>
    <field name="Enable clipping" size="1" start="1" type="bool"/>
    <field name="Vertex ID read by coordinate shader" size="1" start="2" type="bool"/>
    <field name="Instance ID read by coordinate shader" size="1" start="3" type="bool"/>
    <field name="Vertex ID read by vertex shader" size="1" start="4" type="bool"/>
    <field name="Instance ID read by vertex shader" size="1" start="5" type="bool"/>
    <field name="Fragment shader does Z writes" size="1" start="6" type="bool"/>
    <field name="Turn off early-z test" size="1" start="7" type="bool"/>
    <field name="Coordinate shader has separate input and output VPM blocks" size="1" start="8" type="bool"/>
    <field name="Vertex shader has separate input and output VPM blocks" size="1" start="9" type="bool"/>
    <field name="Fragment shader uses real pixel centre W in addition to centroid W2" size="1" start="10" type="bool"/>

    <field name="Number of varyings in Fragment Shader" size="8" start="2b" type="uint"/>
    <field name="Coordinate Shader output VPM segment size" size="8" start="4b" type="uint"/>
    <field name="Coordinate Shader input VPM segment size" size="8" start="5b" type="uint"/>
    <field name="Vertex Shader output VPM segment size" size="8" start="6b" type="uint"/>
    <field name="Vertex Shader input VPM segment size" size="8" start="7b" type="uint"/>
    <field name="Address of default attribute values" size="32" start="8b" type="address"/>
    <field name="Fragment Shader Code Address" size="29" start="99" type="address"/>
    <field name="Fragment Shader 2-way threadable" size="1" start="96" type="bool"/>
    <field name="Fragment Shader 4-way threadable" size="1" start="97" type="bool"/>
    <field name="Fragment Shader Propagate NaNs" size="1" start="98" type="bool"/>
    <field name="Fragment Shader Uniforms Address" size="32" start="16b" type="address"/>
    <field name="Vertex Shader Code Address" size="32" start="20b" type="address"/>
    <field name="Vertex Shader 2-way threadable" size="1" start="160" type="bool"/>
    <field name="Vertex Shader 4-way threadable" size="1" start="161" type="bool"/>
    <field name="Vertex Shader Propagate NaNs" size="1" start="162" type="bool"/>
    <field name="Vertex Shader Uniforms Address" size="32" start="24b" type="address"/>
    <field name="Coordinate Shader Code Address" size="32" start="28b" type="address"/>
    <field name="Coordinate Shader 2-way threadable" size="1" start="224" type="bool"/>
    <field name="Coordinate Shader 4-way threadable" size="1" start="225" type="bool"/>
    <field name="Coordinate Shader Propagate NaNs" size="1" start="226" type="bool"/>
    <field name="Coordinate Shader Uniforms Address" size="32" start="32b" type="address"/>
  </struct>

  <struct name="GL Shader State Record" min_ver="41">
    <field name="Point size in shaded vertex data" size="1" start="0" type="bool"/>
    <field name="Enable clipping" size="1" start="1" type="bool"/>

    <field name="Vertex ID read by coordinate shader" size="1" start="2" type="bool"/>
    <field name="Instance ID read by coordinate shader" size="1" start="3" type="bool"/>
    <field name="Base Instance ID read by coordinate shader" size="1" start="4" type="bool"/>
    <field name="Vertex ID read by vertex shader" size="1" start="5" type="bool"/>
    <field name="Instance ID read by vertex shader" size="1" start="6" type="bool"/>
    <field name="Base Instance ID read by vertex shader" size="1" start="7" type="bool"/>

    <field name="Fragment shader does Z writes" size="1" start="8" type="bool"/>
    <field name="Turn off early-z test" size="1" start="9" type="bool"/>
    <field name="Coordinate shader has separate input and output VPM blocks" size="1" start="10" type="bool"/>
    <field name="Vertex shader has separate input and output VPM blocks" size="1" start="11" type="bool"/>
    <field name="Fragment shader uses real pixel centre W in addition to centroid W2" size="1" start="12" type="bool"/>
    <field name="Enable Sample Rate Shading" size="1" start="13" type="bool"/>
    <field name="Any shader reads hardware-written Primitive ID" size="1" start="14" type="bool"/>
    <field name="Insert Primitive ID as first varying to fragment shader" size="1" start="15" type="bool"/>
    <field name="Turn off scoreboard" size="1" start="16" type="bool"/>
    <field name="Do scoreboard wait on first thread switch" size="1" start="17" type="bool"/>
    <field name="Disable implicit point/line varyings" size="1" start="18" type="bool"/>
    <field name="No prim pack" size="1" start="19" type="bool"/>

    <field name="Number of varyings in Fragment Shader" size="8" start="3b" type="uint"/>

    <field name="Coordinate Shader output VPM segment size" size="4" start="4b" type="uint"/>
    <field name="Min Coord Shader output segments required in play in addition to VCM cache size" size="4" start="36" type="uint"/>

    <field name="Coordinate Shader input VPM segment size" size="4" start="5b" type="uint"/>
    <field name="Min Coord Shader input segments required in play" size="4" start="44" type="uint" minus_one="true"/>

    <field name="Vertex Shader output VPM segment size" size="4" start="6b" type="uint"/>
    <field name="Min Vertex Shader output segments required in play in addition to VCM cache size" size="4" start="52" type="uint"/>

    <field name="Vertex Shader input VPM segment size" size="4" start="7b" type="uint"/>
    <field name="Min Vertex Shader input segments required in play" size="4" start="60" type="uint" minus_one="true"/>

    <field name="Address of default attribute values" size="32" start="8b" type="address"/>

    <field name="Fragment Shader Code Address" size="29" start="99" type="address"/>
    <field name="Fragment Shader 4-way threadable" size="1" start="96" type="bool"/>
    <field name="Fragment Shader start in final thread section" size="1" start="97" type="bool"/>
    <field name="Fragment Shader Propagate NaNs" size="1" start="98" type="bool"/>
    <field name="Fragment Shader Uniforms Address" size="32" start="16b" type="address"/>

    <field name="Vertex Shader Code Address" size="29" start="163" type="address"/>
    <field name="Vertex Shader 4-way threadable" size="1" start="160" type="bool"/>
    <field name="Vertex Shader start in final thread section" size="1" start="161" type="bool"/>
    <field name="Vertex Shader Propagate NaNs" size="1" start="162" type="bool"/>
    <field name="Vertex Shader Uniforms Address" size="32" start="24b" type="address"/>

    <field name="Coordinate Shader Code Address" size="29" start="227" type="address"/>
    <field name="Coordinate Shader 4-way threadable" size="1" start="224" type="bool"/>
    <field name="Coordinate Shader start in final thread section" size="1" start="225" type="bool"/>
    <field name="Coordinate Shader Propagate NaNs" size="1" start="226" type="bool"/>
    <field name="Coordinate Shader Uniforms Address" size="32" start="32b" type="address"/>
  </struct>

  <struct name="Geometry Shader State Record" min_ver="41">
    <field name="Geometry Bin Mode Shader Code Address" size="29" start="3" type="address"/>
    <field name="Geometry Bin Mode Shader 4-way threadable" size="1" start="0" type="bool"/>
    <field name="Geometry Bin Mode Shader Start in final thread section" size="1" start="1" type="bool"/>
    <field name="Geometry Bin Mode Shader Propagate NaNs" size="1" start="2" type="bool"/>
    <field name="Geometry Bin Mode Shader Uniforms Address" size="32" start="4b" type="address"/>
    <field name="Geometry Render Mode Shader Code Address" size="29" start="67" type="address"/>
    <field name="Geometry Render Mode Shader 4-way threadable" size="1" start="64" type="bool"/>
    <field name="Geometry Render Mode Shader Start in final thread section" size="1" start="65" type="bool"/>
    <field name="Geometry Render Mode Shader Propagate NaNs" size="1" start="66" type="bool"/>
    <field name="Geometry Render Mode Shader Uniforms Address" size="32" start="12b" type="address"/>
  </struct>

  <struct name="Tessellation Shader State Record" min_ver="41">
    <field name="Tessellation Bin Mode Control Shader Code Address" size="29" start="3" type="address"/>
    <field name="Tessellation Bin Mode Control Shader 4-way threadable" size="1" start="0" type="bool"/>
    <field name="Tessellation Bin Mode Control Shader Start in final thread section" size="1" start="1" type="bool"/>
    <field name="Tessellation Bin Mode Control Shader Propagate NaNs" size="1" start="2" type="bool"/>
    <field name="Tessellation Bin Mode Control Shader Uniforms Address" size="32" start="4b" type="address"/>
    <field name="Tessellation Render Mode Control Shader Code Address" size="29" start="67" type="address"/>
    <field name="Tessellation Render Mode Control Shader 4-way threadable" size="1" start="64" type="bool"/>
    <field name="Tessellation Render Mode Control Shader Start in final thread section" size="1" start="65" type="bool"/>
    <field name="Tessellation Render Mode Control Shader Propagate NaNs" size="1" start="66" type="bool"/>
    <field name="Tessellation Render Mode Control Shader Uniforms Address" size="32" start="12b" type="address"/>

    <field name="Tessellation Bin Mode Evaluation Shader Code Address" size="29" start="131" type="address"/>
    <field name="Tessellation Bin Mode Evaluation Shader 4-way threadable" size="1" start="128" type="bool"/>
    <field name="Tessellation Bin Mode Evaluation Shader Start in final thread section" size="1" start="129" type="bool"/>
    <field name="Tessellation Bin Mode Evaluation Shader Propagate NaNs" size="1" start="130" type="bool"/>
    <field name="Tessellation Bin Mode Evaluation Shader Uniforms Address" size="32" start="20b" type="address"/>
    <field name="Tessellation Render Mode Evaluation Shader Code Address" size="29" start="195" type="address"/>
    <field name="Tessellation Render Mode Evaluation Shader 4-way threadable" size="1" start="192" type="bool"/>
    <field name="Tessellation Render Mode Evaluation Shader Start in final thread section" size="1" start="193" type="bool"/>
    <field name="Tessellation Render Mode Evaluation Shader Propagate NaNs" size="1" start="194" type="bool"/>
    <field name="Tessellation Render Mode Evaluation Shader Uniforms Address" size="32" start="28b" type="address"/>
  </struct>

  <struct name="Tessellation/Geometry Common Params" min_ver="41">
    <field name="Tessellation Type" size="2" start="1" type="uint">
      <value name="Tessellation Type Triangle" value="0"/>
      <value name="Tessellation Type Quads" value="1"/>
      <value name="Tessellation Type Isolines" value="2"/>
    </field>

    <field name="Tessellation point mode" size="1" start="3" type="bool"/>

    <field name="Tessellation Edge Spacing" size="2" start="4" type="uint">
      <value name="Tessellation Edge Spacing Even" value="0"/>
      <value name="Tessellation Edge Spacing Fractional Even" value="1"/>
      <value name="Tessellation Edge Spacing Fractional Odd" value="2"/>
    </field>

    <field name="Tessellation clockwise" size="1" start="6" type="bool"/>

    <field name="Tessellation Invocations" size="5" start="12" type="uint"/> <!-- 0 == 32 -->

    <field name="Geometry Shader output format" size="2" start="17" type="uint">
      <value name="Geometry Shader Points" value="0"/>
      <value name="Geometry Shader Line Strip" value="1"/>
      <value name="Geometry Shader Tri Strip" value="2"/>
    </field>

    <field name="Geometry Shader Instances" size="5" start="19" type="uint"/> <!-- 0 == 32 -->

     <!-- This field should not be filled, but we need it in the struct description so
          we don't compute an incorrect packet size, since it uses an full byte.
      -->
    <field name="Reserved" size="8" start="24" type="uint"/>

    <!-- followed by "Tessellation/Geometry Shader Params" for bin, then render -->
  </struct>

  <struct name="Tessellation/Geometry Shader Params">
    <field name="TCS Batch Flush Mode" size="2" start="0" type="TCS flush mode"/>
    <field name="Per-patch data column depth" size="4" start="2" type="uint"/> <!-- 8-dword units, 0==16 -->

    <field name="TCS output segment size in sectors" size="6" start="8" type="uint"/>
    <field name="TCS output segment pack mode" size="2" start="14" type="Pack Mode"/>

    <field name="TES output segment size in sectors" size="6" start="16" type="uint"/>
    <field name="TES output segment pack mode" size="2" start="22" type="Pack Mode"/>

    <field name="GS output segment size in sectors" size="6" start="24" type="uint"/>
    <field name="GS output segment pack mode" size="2" start="30" type="Pack Mode"/>

    <field name="TBG max patches per TCS batch" size="4" start="32" type="uint" minus_one="true"/>
    <field name="TBG max extra vertex segs for patches after first" size="2" start="36" type="uint"/>
    <field name="TBG min TCS output segments required in play" size="2" start="38" type="uint" minus_one="true"/>
    <field name="TBG min per-patch data segments required in play" size="3" start="40" type="uint" minus_one="true"/>
    <field name="TPG max patches per TES batch" size="4" start="45" type="uint" minus_one="true"/>
    <field name="TPG max vertex segments per TES batch" size="2" start="49" type="uint"/>
    <field name="TPG max TCS output segments per TES batch" size="3" start="51" type="uint" minus_one="true"/>
    <field name="TPG min TES output segments required in play" size="3" start="54" type="uint" minus_one="true"/>
    <field name="GBG max TES output/vertex segments per GS batch" size="2" start="57" type="uint"/>
    <field name="GBG min GS output segments required in play" size="3" start="59" type="uint" minus_one="true"/>
  </struct>

  <struct name="GL Shader State Attribute Record" max_ver="33">
    <field name="Address" size="32" start="0" type="address"/>

    <field name="Vec size" size="2" start="32" type="uint"/>
    <field name="Type" size="3" start="34" type="uint">
      <value name="Attribute half-float" value="1"/>
      <value name="Attribute float" value="2"/>
      <value name="Attribute fixed" value="3"/>
      <value name="Attribute byte" value="4"/>
      <value name="Attribute short" value="5"/>
      <value name="Attribute int" value="6"/>
      <value name="Attribute int2_10_10_10" value="7"/>
    </field>
    <field name="Signed int type" size="1" start="37" type="bool"/>
    <field name="Normalized int type" size="1" start="38" type="bool"/>
    <field name="Read as int/uint" size="1" start="39" type="bool"/>

    <field name="Number of values read by Coordinate shader" size="4" start="40" type="uint"/>
    <field name="Number of values read by Vertex shader" size="4" start="44" type="uint"/>

    <field name="Instance Divisor" size="16" start="6b" type="uint"/>
    <field name="Stride" size="32" start="8b" type="uint"/>
  </struct>

  <struct name="GL Shader State Attribute Record" min_ver="41">
    <field name="Address" size="32" start="0" type="address"/>

    <field name="Vec size" size="2" start="32" type="uint"/>
    <field name="Type" size="3" start="34" type="uint">
      <value name="Attribute half-float" value="1"/>
      <value name="Attribute float" value="2"/>
      <value name="Attribute fixed" value="3"/>
      <value name="Attribute byte" value="4"/>
      <value name="Attribute short" value="5"/>
      <value name="Attribute int" value="6"/>
      <value name="Attribute int2_10_10_10" value="7"/>
    </field>
    <field name="Signed int type" size="1" start="37" type="bool"/>
    <field name="Normalized int type" size="1" start="38" type="bool"/>
    <field name="Read as int/uint" size="1" start="39" type="bool"/>

    <field name="Number of values read by Coordinate shader" size="4" start="40" type="uint"/>
    <field name="Number of values read by Vertex shader" size="4" start="44" type="uint"/>

    <field name="Instance Divisor" size="16" start="6b" type="uint"/>
    <field name="Stride" size="32" start="8b" type="uint"/>
    <field name="Maximum Index" size="32" start="12b" type="uint"/>
  </struct>

  <struct name="VPM generic block write setup">
    <field name="id" size="2" start="30" type="uint" default="0"/>
    <field name="id0" size="3" start="27" type="uint" default="0"/>

    <field name="horiz" size="1" start="24" type="bool"/>
    <field name="laned" size="1" start="23" type="bool"/>
    <field name="segs" size="1" start="22" type="bool"/>
    <field name="stride" size="7" start="15" type="int"/>

    <field name="size" size="2" start="13" type="uint">
      <value name="VPM setup size 8-bit" value="0"/>
      <value name="VPM setup size 16-bit" value="1"/>
      <value name="VPM setup size 32-bit" value="2"/>
    </field>

    <field name="addr" size="13" start="0" type="uint"/>
  </struct>

  <struct name="VPM generic block read setup">
    <field name="id" size="2" start="30" type="uint" default="1"/>

    <field name="horiz" size="1" start="29" type="bool"/>
    <field name="laned" size="1" start="28" type="bool"/>
    <field name="segs" size="1" start="27" type="bool"/>
    <field name="num" size="5" start="22" type="uint"/>
    <field name="stride" size="7" start="15" type="int"/>

    <field name="size" size="2" start="13" type="uint">
      <value name="VPM setup size 8-bit" value="0"/>
      <value name="VPM setup size 16-bit" value="1"/>
      <value name="VPM setup size 32-bit" value="2"/>
    </field>

    <field name="addr" size="13" start="0" type="uint"/>
  </struct>

  <struct name="Texture Uniform Parameter 0 CFG_MODE=1" max_ver="33">
    <field name="Per-pixel mask enable" size="1" start="31" type="bool"/>

    <field name="Texel offset for r coordinate" size="4" start="27" type="int"/>
    <field name="Texel offset for t coordinate" size="4" start="23" type="int"/>
    <field name="Texel offset for s coordinate" size="4" start="19" type="int"/>

    <field name="R Wrap Mode" size="3" start="16" type="Wrap Mode"/>
    <field name="T Wrap Mode" size="3" start="13" type="Wrap Mode"/>
    <field name="S Wrap Mode" size="3" start="10" type="Wrap Mode"/>

    <field name="New configuration mode" size="1" start="9" type="bool" default="1"/>

    <field name="Shadow" size="1" start="8" type="bool"/>
    <field name="Coefficient lookup mode" size="1" start="7" type="bool"/>
    <field name="Disable AutoLOD, use bias only" size="1" start="6" type="bool"/>
    <field name="Bias supplied" size="1" start="5" type="bool"/>
    <field name="Gather sample mode" size="1" start="4" type="bool"/>
    <field name="Fetch sample mode" size="1" start="3" type="bool"/>

    <field name="Lookup Type" size="3" start="0" type="uint">
      <value name="Texture 2D" value="0"/>
      <value name="Texture 2D array" value="1"/>
      <value name="Texture 3D" value="2"/>
      <value name="Texture Cube Map" value="3"/>
      <value name="Texture 1D" value="4"/>
      <value name="Texture 1D Array" value="5"/>
      <value name="Texture Child Image" value="6"/>
    </field>
  </struct>

  <struct name="Texture Uniform Parameter 1 CFG_MODE=1" max_ver="33">
    <field name="Texture state record base address" size="28" start="4" type="address"/>
    <field name="Return words of texture data" size="4" start="0" type="uint"/>
  </struct>

  <struct name="TMU Config Parameter 0" min_ver="41">
    <field name="Texture state address" size="32" start="0" type="address"/>
    <field name="Return words of texture data" size="4" start="0" type="uint"/>
  </struct>

  <struct name="TMU Config Parameter 1" min_ver="41">
    <field name="Sampler state address" size="32" start="0" type="address"/>
    <field name="Per-pixel mask enable" size="1" start="2" type="bool"/>
    <field name="Unnormalized coordinates" size="1" start="1" type="bool"/>
    <field name="Output Type 32-bit" size="1" start="0" type="bool"/>
  </struct>

  <struct name="TMU Config Parameter 2" min_ver="41" max_ver="41">
    <field name="Pad" size="8" start="24" type="uint"/>
    <field name="Op" size="4" start="20" type="TMU Op"/>
    <field name="Offset R" size="4" start="16" type="int"/>
    <field name="Offset T" size="4" start="12" type="int"/>
    <field name="Offset S" size="4" start="8" type="int"/>
    <field name="Gather Mode" size="1" start="7" type="bool"/>
    <field name="Gather Component" size="2" start="5" type="uint"/>
    <field name="Coefficient Mode" size="1" start="4" type="bool"/>
    <field name="Sample Number" size="2" start="2" type="uint"/>
    <field name="Disable AutoLOD" size="1" start="1" type="bool"/>
    <field name="Offset Format 8" size="1" start="0" type="bool"/>
  </struct>

  <struct name="TMU Config Parameter 2" min_ver="42">
    <field name="Pad" size="7" start="25" type="uint"/>
    <field name="LOD Query" size="1" start="24" type="bool"/>
    <field name="Op" size="4" start="20" type="TMU Op"/>
    <field name="Offset R" size="4" start="16" type="int"/>
    <field name="Offset T" size="4" start="12" type="int"/>
    <field name="Offset S" size="4" start="8" type="int"/>
    <field name="Gather Mode" size="1" start="7" type="bool"/>
    <field name="Gather Component" size="2" start="5" type="uint"/>
    <field name="Coefficient Mode" size="1" start="4" type="bool"/>
    <field name="Sample Number" size="2" start="2" type="uint"/>
    <field name="Disable AutoLOD" size="1" start="1" type="bool"/>
    <field name="Offset Format 8" size="1" start="0" type="bool"/>
  </struct>

  <struct name="Texture Shader State" max_ver="33">
    <field name="UIF XOR disable" size="1" start="255" type="bool"/>
    <field name="Level 0 is strictly UIF" size="1" start="254" type="bool"/>
    <field name="Level 0 XOR enable" size="1" start="252" type="bool"/>
    <field name="Level 0 UB_PAD" size="4" start="248" type="uint"/>
    <field name="Output 32-bit" size="1" start="246" type="bool"/>
    <field name="Sample Number" size="2" start="244" type="uint"/>

    <field name="Base Level" size="4" start="240" type="uint"/>
    <field name="Fixed Bias" size="16" start="224" type="s8.8"/>
    <field name="Max Level-of-Detail" size="16" start="208" type="s8.8"/>
    <field name="Min Level-of-Detail" size="16" start="192" type="s8.8"/>

    <field name="Border Color alpha" size="16" start="176" type="uint"/>
    <field name="Border Color blue" size="16" start="160" type="uint"/>
    <field name="Border Color green" size="16" start="144" type="uint"/>
    <field name="Border Color red" size="16" start="128" type="uint"/>

    <field name="Flip S and T on incoming request" size="1" start="127" type="bool"/>
    <field name="Flip ETC Y" size="1" start="126" type="bool" default="1"/>
    <field name="Flip texture Y Axis" size="1" start="125" type="bool"/>
    <field name="Flip texture X Axis" size="1" start="124" type="bool"/>

    <field name="Swizzle A" size="3" start="121" type="uint">
      <value name="Swizzle Zero" value="0"/>
      <value name="Swizzle One" value="1"/>
      <value name="Swizzle Red" value="2"/>
      <value name="Swizzle Green" value="3"/>
      <value name="Swizzle Blue" value="4"/>
      <value name="Swizzle Alpha" value="5"/>
    </field>

    <field name="Swizzle B" size="3" start="118" type="uint"/>
    <field name="Swizzle G" size="3" start="115" type="uint"/>
    <field name="Swizzle R" size="3" start="112" type="uint"/>

    <field name="Depth Compare Function" size="3" start="109" type="Compare Function"/>

    <field name="sRGB" size="1" start="107" type="bool"/>

    <field name="Texture type" size="7" start="100" type="uint"/>

    <field name="Image Depth" size="14" start="86" type="uint"/>
    <field name="Image Height" size="14" start="72" type="uint"/>
    <field name="Image Width" size="14" start="58" type="uint"/>

    <field name="Array Stride (64-byte aligned)" size="26" start="32" type="uint"/>

    <field name="Texture base pointer" size="30" start="2" type="address"/>

    <field name="Filter" size="4" start="0" type="TMU Filter"/>
  </struct>

  <struct name="Texture Shader State" min_ver="41">
    <field name="Pad" size="56" start="136" type="uint"/>
    <field name="UIF XOR disable" size="1" start="135" type="bool"/>
    <field name="Level 0 is strictly UIF" size="1" start="134" type="bool"/>
    <field name="Level 0 XOR enable" size="1" start="132" type="bool"/>
    <field name="Level 0 UB_PAD" size="4" start="128" type="uint"/>

    <field name="Base Level" size="4" start="124" type="uint"/>
    <field name="Max Level" size="4" start="120" type="uint"/>

    <field name="Swizzle A" size="3" start="117" type="uint">
      <value name="Swizzle Zero" value="0"/>
      <value name="Swizzle One" value="1"/>
      <value name="Swizzle Red" value="2"/>
      <value name="Swizzle Green" value="3"/>
      <value name="Swizzle Blue" value="4"/>
      <value name="Swizzle Alpha" value="5"/>
    </field>

    <field name="Swizzle B" size="3" start="114" type="uint"/>
    <field name="Swizzle G" size="3" start="111" type="uint"/>
    <field name="Swizzle R" size="3" start="108" type="uint"/>
    <field name="Extended" size="1" start="107" type="bool"/>

    <field name="Texture type" size="7" start="100" type="uint"/>
    <field name="Image Depth" size="14" start="86" type="uint"/>
    <field name="Image Height" size="14" start="72" type="uint"/>
    <field name="Image Width" size="14" start="58" type="uint"/>

    <field name="Array Stride (64-byte aligned)" size="26" start="32" type="uint"/>

    <field name="Texture base pointer" size="32" start="0" type="address"/>

    <field name="Reverse Standard Border Color" size="1" start="5" type="bool"/>
    <field name="AHDR" size="1" start="4" type="bool"/>
    <field name="sRGB" size="1" start="3" type="bool"/>
    <field name="Flip S and T on incoming request" size="1" start="2" type="bool"/>
    <field name="Flip texture Y Axis" size="1" start="1" type="bool"/>
    <field name="Flip texture X Axis" size="1" start="0" type="bool"/>
  </struct>

  <struct name="Sampler State" min_ver="41">
    <field name="Border color word 3" size="32" start="160" type="uint"/>
    <field name="Border color word 2" size="32" start="128" type="uint"/>
    <field name="Border color word 1" size="32" start="96" type="uint"/>
    <field name="Border color word 0" size="32" start="64" type="uint"/>

    <field name="Maximum Anisotropy" size="2" start="61" type="uint"/>
    <field name="Border Color Mode" size="3" start="58" type="Border Color Mode"/>
    <field name="Wrap I Border" size="1" start="57" type="bool"/>
    <field name="Wrap R" size="3" start="54" type="Wrap Mode"/>
    <field name="Wrap T" size="3" start="51" type="Wrap Mode"/>
    <field name="Wrap S" size="3" start="48" type="Wrap Mode"/>

    <field name="Fixed Bias" size="16" start="32" type="s8.8"/>
    <field name="Max Level-of-Detail" size="12" start="20" type="u4.8"/>
    <field name="Min Level-of-Detail" size="12" start="8" type="u4.8"/>

    <field name="sRGB Disable" size="1" start="7" type="bool"/>

    <field name="Depth Compare Function" size="3" start="4" type="Compare Function"/>

    <field name="Anisotropy Enable" size="1" start="3" type="bool"/>
    <field name="Mip filter Nearest" size="1" start="2" type="bool"/>
    <field name="Min filter Nearest" size="1" start="1" type="bool"/>
    <field name="Mag filter Nearest" size="1" start="0" type="bool"/>
  </struct>

  <enum name="Texture Data Formats">
    <!--
	most formats here have R in the low bits, A in the high bits.
	Exceptions noted.
    -->
    <value name="Texture Data Format R8" value="0"/>
    <value name="Texture Data Format R8 SNORM" value="1"/>
    <value name="Texture Data Format RG8" value="2"/>
    <value name="Texture Data Format RG8 SNORM" value="3"/>
    <value name="Texture Data Format RGBA8" value="4"/>
    <value name="Texture Data Format RGBA8 SNORM" value="5"/>
    <value name="Texture Data Format RGB565" value="6"/> <!-- B in low bits -->
    <value name="Texture Data Format RGBA4" value="7"/> <!-- A low, R high -->
    <value name="Texture Data Format RGB5_A1" value="8"/> <!-- A low, R high -->
    <value name="Texture Data Format RGB10_A2" value="9"/> <!-- R low, A high -->
    <value name="Texture Data Format R16" value="10"/>
    <value name="Texture Data Format R16 SNORM" value="11"/>
    <value name="Texture Data Format RG16" value="12"/>
    <value name="Texture Data Format RG16 SNORM" value="13"/>
    <value name="Texture Data Format RGBA16" value="14"/>
    <value name="Texture Data Format RGBA16 SNORM" value="15"/>
    <value name="Texture Data Format R16F" value="16"/>
    <value name="Texture Data Format RG16F" value="17"/>
    <value name="Texture Data Format RGBA16F" value="18"/>
    <value name="Texture Data Format R11F_G11F_B10F" value="19"/>
    <value name="Texture Data Format RGB9_E5" value="20"/>
    <value name="Texture Data Format DEPTH COMP16" value="21"/>
    <value name="Texture Data Format DEPTH COMP24" value="22"/>
    <value name="Texture Data Format DEPTH COMP32F" value="23"/>
    <value name="Texture Data Format DEPTH24_X8" value="24"/> <!-- X low, D high -->
    <value name="Texture Data Format R4" value="25"/>
    <value name="Texture Data Format R1" value="26"/>
    <!-- generic unfiltered 8-bit sample -->
    <value name="Texture Data Format S8" value="27"/>
    <!-- generic unfiltered 16-bit sample -->
    <value name="Texture Data Format S16" value="28"/>
    <!-- generic unfiltered 32-bit sample -->
    <value name="Texture Data Format R32F" value="29"/>
    <!-- generic unfiltered 64-bit sample -->
    <value name="Texture Data Format RG32F" value="30"/>
    <!-- generic unfiltered 128-bit sample -->
    <value name="Texture Data Format RGBA32F" value="31"/>

    <value name="Texture Data Format RGB8_ETC2" value="32"/>
    <value name="Texture Data Format RGB8_PUNCHTHROUGH_ALPHA1" value="33"/>

    <value name="Texture Data Format R11_EAC" value="34"/>
    <value name="Texture Data Format SIGNED_R11_EAC" value="35"/>
    <value name="Texture Data Format RG11_EAC" value="36"/>
    <value name="Texture Data Format SIGNED_RG11_EAC" value="37"/>

    <value name="Texture Data Format RGBA8_ETC2_EAC" value="38"/>
    <value name="Texture Data Format YCBCR_LUMA" value="39"/>
    <value name="Texture Data Format YCBCR_420_CHROMA" value="40"/>

    <value name="Texture Data Format BC1" value="48"/>
    <value name="Texture Data Format BC2" value="49"/>
    <value name="Texture Data Format BC3" value="50"/>

    <value name="Texture Data Format ASTC_4x4" value="64"/>
    <value name="Texture Data Format ASTC_5x4" value="65"/>
    <value name="Texture Data Format ASTC_5x5" value="66"/>
    <value name="Texture Data Format ASTC_6x5" value="67"/>
    <value name="Texture Data Format ASTC_6x6" value="68"/>
    <value name="Texture Data Format ASTC_8x5" value="69"/>
    <value name="Texture Data Format ASTC_8x6" value="70"/>
    <value name="Texture Data Format ASTC_8x8" value="71"/>
    <value name="Texture Data Format ASTC_10x5" value="72"/>
    <value name="Texture Data Format ASTC_10x6" value="73"/>
    <value name="Texture Data Format ASTC_10x8" value="74"/>
    <value name="Texture Data Format ASTC_10x10" value="75"/>
    <value name="Texture Data Format ASTC_12x10" value="76"/>
    <value name="Texture Data Format ASTC_12x12" value="77"/>

    <value name="Texture Data Format R8I" value="96"/>
    <value name="Texture Data Format R8UI" value="97"/>
    <value name="Texture Data Format RG8I" value="98"/>
    <value name="Texture Data Format RG8UI" value="99"/>
    <value name="Texture Data Format RGBA8I" value="100"/>
    <value name="Texture Data Format RGBA8UI" value="101"/>

    <value name="Texture Data Format R16I" value="102"/>
    <value name="Texture Data Format R16UI" value="103"/>
    <value name="Texture Data Format RG16I" value="104"/>
    <value name="Texture Data Format RG16UI" value="105"/>
    <value name="Texture Data Format RGBA16I" value="106"/>
    <value name="Texture Data Format RGBA16UI" value="107"/>

    <value name="Texture Data Format R32I" value="108"/>
    <value name="Texture Data Format R32UI" value="109"/>
    <value name="Texture Data Format RG32I" value="110"/>
    <value name="Texture Data Format RG32UI" value="111"/>
    <value name="Texture Data Format RGBA32I" value="112"/>
    <value name="Texture Data Format RGBA32UI" value="113"/>
    <value name="Texture Data Format RGB10_A2UI" value="114"/>
    <value name="Texture Data Format A1_RGB5" value="115"/>

  </enum>
</vcxml>