pan/genxml/v12: Add minus1 mod for plane width/height

The width/height fields in the plane descriptors for v12 are missing
their minus(1) modifiers.

This change adds the missing modifiers, which implies also setting
default values to 1 due to how the Two-Plane YUV Overlay interacts with
the plane descriptors.

Fixes: b6d5e01120 ("pan/genxml: Add v12 definition")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34839>
This commit is contained in:
Lars-Ivar Hesselberg Simonsen 2025-05-06 10:43:00 +02:00 committed by Marge Bot
parent 2542857259
commit e38eb00e4e

View file

@ -1579,8 +1579,8 @@
</struct>
<struct name="Two-Plane YUV Chroma Overlay" size="8">
<field name="Width" size="16" start="5:0" type="uint"/>
<field name="Height" size="16" start="5:16" type="uint"/>
<field name="Width" size="16" start="5:0" type="uint" modifier="minus(1)" default="1"/>
<field name="Height" size="16" start="5:16" type="uint" modifier="minus(1)" default="1"/>
<field name="Secondary Pointer" size="64" start="6:0" type="address"/>
</struct>
@ -1610,8 +1610,8 @@
<field name="Pointer" size="64" start="2:0" type="address"/>
<field name="Row stride" size="32" start="4:0" type="uint"/>
<field name="Slice stride" size="32" start="6:0" type="int"/>
<field name="Width" size="16" start="7:0" type="uint"/>
<field name="Height" size="16" start="7:16" type="uint"/>
<field name="Width" size="16" start="7:0" type="uint" modifier="minus(1)" default="1"/>
<field name="Height" size="16" start="7:16" type="uint" modifier="minus(1)" default="1"/>
</struct>
<struct name="Texture" size="8" align="32">