[Mesa-dev] [PATCH] genxml: Fix 3DSTATE_DEPTH_BUFFER length on gen5.
Kenneth Graunke
kenneth at whitecape.org
Thu May 4 01:17:12 UTC 2017
On Wednesday, May 3, 2017 5:53:35 PM PDT Rafael Antognolli wrote:
> The hardware docs are wrong, but the length used in the xml is also
> wrong.
>
> Signed-off-by: Rafael Antognolli <rafael.antognolli at intel.com>
> ---
> src/intel/genxml/gen5.xml | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/intel/genxml/gen5.xml b/src/intel/genxml/gen5.xml
> index 0b84650..447499c 100644
> --- a/src/intel/genxml/gen5.xml
> +++ b/src/intel/genxml/gen5.xml
> @@ -649,14 +649,14 @@
> <field name="Y Offset" start="180" end="183" type="uint"/>
> </struct>
>
> - <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="5">
> - <!-- The hardware docs incorrectly say length is 6. The actual length is 5. -->
> + <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="6">
> + <!-- The hardware docs incorrectly say length is 7. The actual length is 6. -->
> <!-- DWord 0 -->
> <field name="Command Type" start="29" end="31" type="uint" default="3"/>
> <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
> <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
> <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
> - <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
> + <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
> <!-- DWord 1 -->
> <field name="Surface Type" start="61" end="63" type="uint">
> <value name="SURFTYPE_1D" value="0"/>
>
Yep, the Ironlake docs are awful. "DWord 6" claims to contain Render
Target View Extent - but it does not. It does not exist on Gen5.
It contains MOCS on Gen6+. It contains RTVE on Gen7+.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170503/2c7915eb/attachment.sig>
More information about the mesa-dev
mailing list