mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 06:50:11 +01:00
anv, iris, intel/genxml: Update 3DSTATE_HS for xe2
Update 3DSTATE_HS programming for xe2 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26600>
This commit is contained in:
parent
8ba9988858
commit
30faa7a483
3 changed files with 47 additions and 0 deletions
|
|
@ -5001,7 +5001,9 @@ iris_store_tcs_state(const struct intel_device_info *devinfo,
|
|||
#endif
|
||||
|
||||
#if GFX_VER >= 9
|
||||
#if GFX_VER < 20
|
||||
hs.DispatchMode = vue_prog_data->dispatch_mode;
|
||||
#endif
|
||||
hs.IncludePrimitiveID = tcs_prog_data->include_primitive_id;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -253,6 +253,49 @@
|
|||
<field name="Vertex URB Entry Output Length" start="304" end="308" type="uint" />
|
||||
<field name="Vertex URB Entry Output Read Offset" start="309" end="314" type="uint" />
|
||||
</instruction>
|
||||
<instruction name="3DSTATE_HS" bias="2" length="8" engine="render">
|
||||
<field name="DWord Length" start="0" end="7" type="uint" default="6" />
|
||||
<field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="27" />
|
||||
<field name="3D Command Opcode" start="24" end="26" type="uint" default="0" />
|
||||
<field name="Command SubType" start="27" end="28" type="uint" default="3" />
|
||||
<field name="Command Type" start="29" end="31" type="uint" default="3" />
|
||||
<field name="Patch Count Threshold" start="32" end="35" type="uint" />
|
||||
<field name="Software Exception Enable" start="44" end="44" type="bool" />
|
||||
<field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool" />
|
||||
<field name="Floating Point Mode" start="48" end="48" type="uint">
|
||||
<value name="IEEE-754" value="0" />
|
||||
<value name="alternate" value="1" />
|
||||
</field>
|
||||
<field name="Thread Dispatch Priority" start="49" end="49" type="uint">
|
||||
<value name="Normal" value="0" />
|
||||
<value name="High" value="1" />
|
||||
</field>
|
||||
<field name="Binding Table Entry Count" start="50" end="57" type="uint" />
|
||||
<field name="Sampler Count" start="59" end="61" type="uint">
|
||||
<value name="No Samplers" value="0" />
|
||||
<value name="1-4 Samplers" value="1" />
|
||||
<value name="5-8 Samplers" value="2" />
|
||||
<value name="9-12 Samplers" value="3" />
|
||||
<value name="13-16 Samplers" value="4" />
|
||||
</field>
|
||||
<field name="Instance Count" start="64" end="68" type="uint" />
|
||||
<field name="Maximum Number of Threads" start="72" end="80" type="uint" />
|
||||
<field name="Statistics Enable" start="93" end="93" type="bool" />
|
||||
<field name="Enable" start="95" end="95" type="bool" />
|
||||
<field name="Kernel Start Pointer" start="102" end="159" type="offset" />
|
||||
<field name="Scratch Space Buffer" start="170" end="191" type="uint" />
|
||||
<field name="Include Primitive ID" start="224" end="224" type="bool" />
|
||||
<field name="Vertex URB Entry Read Offset" start="228" end="233" type="uint" />
|
||||
<field name="Vertex URB Entry Read Length" start="235" end="240" type="uint" />
|
||||
<field name="Dispatch GRF Start Register For URB Data" start="243" end="247" type="uint" />
|
||||
<field name="Include Vertex Handles" start="248" end="248" type="bool" />
|
||||
<field name="Accesses UAV" start="249" end="249" type="bool" />
|
||||
<field name="Vector Mask Enable" start="250" end="250" type="uint">
|
||||
<value name="Dmask" value="0" />
|
||||
</field>
|
||||
<field name="Single Program Flow" start="251" end="251" type="bool" />
|
||||
<field name="Dispatch GRF Start Register For URB Data [5]" start="252" end="252" type="uint" />
|
||||
</instruction>
|
||||
<instruction name="3DSTATE_PS" bias="2" length="12" engine="render">
|
||||
<field name="DWord Length" start="0" end="7" type="uint" default="10" />
|
||||
<field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="32" />
|
||||
|
|
|
|||
|
|
@ -1314,7 +1314,9 @@ emit_3dstate_hs_ds(struct anv_graphics_pipeline *pipeline,
|
|||
hs.PatchCountThreshold = tcs_prog_data->patch_count_threshold;
|
||||
#endif
|
||||
|
||||
#if GFX_VER < 20
|
||||
hs.DispatchMode = tcs_prog_data->base.dispatch_mode;
|
||||
#endif
|
||||
hs.IncludePrimitiveID = tcs_prog_data->include_primitive_id;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue