pan/genxml: Fix vertex_packet Attribute on v9+

The fields "Attribute stride" and "Packet stride" are in the wrong
order, and "Packet stride" should not be shr() modified.

This has probably not shown up as an issue before due to the use of
LD_VAR_BUF[_IMM] for varyings, which does not require us to create
Attribute Descriptors with type vertex_packet.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32969>
This commit is contained in:
Lars-Ivar Hesselberg Simonsen 2025-01-07 16:46:21 +01:00 committed by Marge Bot
parent d57beebc8d
commit 7881d19d01
2 changed files with 4 additions and 4 deletions

View file

@ -855,8 +855,8 @@
<field name="Stride" size="32" start="4:0" type="uint"/>
<!-- Vertex packet buffer only -->
<field name="Packet stride" size="16" start="4:0" type="uint" modifier="shr(6)"/>
<field name="Attribute stride" size="16" start="4:16" type="uint"/>
<field name="Attribute stride" size="16" start="4:0" type="uint"/>
<field name="Packet stride" size="16" start="4:16" type="uint"/>
<field name="Divisor D" size="32" start="5:0" type="uint"/>
</struct>

View file

@ -482,8 +482,8 @@
<field name="Stride" size="32" start="4:0" type="uint"/>
<!-- Vertex packet buffer only -->
<field name="Packet stride" size="16" start="4:0" type="uint" modifier="shr(6)"/>
<field name="Attribute stride" size="16" start="4:16" type="uint"/>
<field name="Attribute stride" size="16" start="4:0" type="uint"/>
<field name="Packet stride" size="16" start="4:16" type="uint"/>
<field name="Divisor D" size="32" start="5:0" type="uint"/>
</struct>