[Mesa-dev] [PATCH] genxml: Fix PIPELINE_SELECT on G45/Ironlake.

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Nov 16 17:18:10 UTC 2017


On 16/11/17 08:36, Kenneth Graunke wrote:
> Original 965 sets bits 28:27 to 0, while G45 and later set it to 1.
>
> Also, there's no GPGPU pipeline on Gen5, and the pipeline to select
> is a single bit - bit 1 is reserved.

Are you sure you haven't mixed them?

> ---
>   src/intel/genxml/gen45.xml | 4 ++--
>   src/intel/genxml/gen5.xml  | 5 ++---
>   2 files changed, 4 insertions(+), 5 deletions(-)
>
> We don't actually use this in i965 today, but we do use it when
> decoding batches in INTEL_DEBUG=bat or aubinator_error_decode...
>
> diff --git a/src/intel/genxml/gen45.xml b/src/intel/genxml/gen45.xml
> index c91085831ea..f74a40202fc 100644
> --- a/src/intel/genxml/gen45.xml
> +++ b/src/intel/genxml/gen45.xml
> @@ -1162,10 +1162,10 @@
>   
>     <instruction name="PIPELINE_SELECT" bias="1" length="1">
>       <field name="Command Type" start="29" end="31" type="uint" default="3"/>
> -    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
> +    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>

G45: Vol 1a: Graphics Core says is should be 0.

>       <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="4"/>
> -    <field name="Pipeline Selection" start="0" end="1" type="uint">
> +    <field name="Pipeline Selection" start="0" end="0" type="uint">
>         <value name="3D" value="0"/>
>         <value name="Media" value="1"/>
>       </field>
> diff --git a/src/intel/genxml/gen5.xml b/src/intel/genxml/gen5.xml
> index 93e687a32bd..8fdac7cd55a 100644
> --- a/src/intel/genxml/gen5.xml
> +++ b/src/intel/genxml/gen5.xml
> @@ -1253,13 +1253,12 @@
>   
>     <instruction name="PIPELINE_SELECT" bias="1" length="1">
>       <field name="Command Type" start="29" end="31" type="uint" default="3"/>
> -    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
> +    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
>       <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="4"/>
> -    <field name="Pipeline Selection" start="0" end="1" type="uint">
> +    <field name="Pipeline Selection" start="0" end="0" type="uint">
>         <value name="3D" value="0"/>
>         <value name="Media" value="1"/>
> -      <value name="GPGPU" value="2"/>

IHD_OS_Vol1_Part1 says Pipeline Select is on bits 0-1 with value 2 fpr 
GPGPU.

>       </field>
>     </instruction>
>   




More information about the mesa-dev mailing list