mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
pan/genxml: The BLEND array must be 64B aligned
I'm not sure if this is the best way to enforce this as it's really a restriction on the blend array pointer. Individual blend descriptors only have to be 16B-aligned. But this seems to work and doesn't affect the array stride, which is still 16B. Also, I couldn't actually find the restriction in the v10 docs but it's there on v11 and this is enough of a pain to debug that we're probably better off playing it safe. Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39274>
This commit is contained in:
parent
9cab0c4bf0
commit
4a2d3b9a81
3 changed files with 3 additions and 3 deletions
|
|
@ -1030,7 +1030,7 @@
|
|||
<field name="Fixed-Function" size="64" start="0:0" type="Blend Fixed-Function"/>
|
||||
</struct>
|
||||
|
||||
<struct name="Blend" size="4" align="16">
|
||||
<struct name="Blend" size="4" align="64">
|
||||
<field name="Load Destination" size="1" start="0:0" type="bool" default="false"/>
|
||||
<field name="Alpha To One" size="1" start="0:8" type="bool"/>
|
||||
<field name="Enable" size="1" start="0:9" type="bool" default="true"/>
|
||||
|
|
|
|||
|
|
@ -1265,7 +1265,7 @@
|
|||
<field name="Fixed-Function" size="64" start="0:0" type="Blend Fixed-Function"/>
|
||||
</struct>
|
||||
|
||||
<struct name="Blend" size="4" align="16">
|
||||
<struct name="Blend" size="4" align="64">
|
||||
<field name="Load Destination" size="1" start="0:0" type="bool" default="false"/>
|
||||
<field name="Alpha To One" size="1" start="0:8" type="bool"/>
|
||||
<field name="Enable" size="1" start="0:9" type="bool" default="true"/>
|
||||
|
|
|
|||
|
|
@ -1574,7 +1574,7 @@
|
|||
<field name="Fixed-Function" size="64" start="0:0" type="Blend Fixed-Function"/>
|
||||
</struct>
|
||||
|
||||
<struct name="Blend" size="4" align="16">
|
||||
<struct name="Blend" size="4" align="64">
|
||||
<field name="Load Destination" size="1" start="0:0" type="bool" default="false"/>
|
||||
<field name="Alpha To One" size="1" start="0:8" type="bool"/>
|
||||
<field name="Enable" size="1" start="0:9" type="bool" default="true"/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue