[Mesa-dev] [PATCH v02 07/37] genxml: Make "Reorder Mode" fields consistent.
Rafael Antognolli
rafael.antognolli at intel.com
Mon Apr 24 22:19:02 UTC 2017
From: Kenneth Graunke <kenneth at whitecape.org>
Both GS and SOL have these fields. Some were ReorderEnable = true,
some were ReorderMode = REORDER_TRAILING, and some were just TRAILING.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/intel/genxml/gen6.xml | 5 ++++-
src/intel/genxml/gen7.xml | 5 ++++-
src/intel/vulkan/genX_pipeline.c | 4 ----
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/intel/genxml/gen6.xml b/src/intel/genxml/gen6.xml
index 8ead41f..14d643c 100644
--- a/src/intel/genxml/gen6.xml
+++ b/src/intel/genxml/gen6.xml
@@ -1006,7 +1006,10 @@
<field name="Statistics Enable" start="170" end="170" type="bool"/>
<field name="SO Statistics Enable" start="169" end="169" type="bool"/>
<field name="Rendering Enabled" start="168" end="168" type="uint"/>
- <field name="Reorder Enable" start="222" end="222" type="bool"/>
+ <field name="Reorder Mode" start="222" end="222" type="uint">
+ <value name="LEADING" value="0"/>
+ <value name="TRAILING" value="1"/>
+ </field>
<field name="Discard Adjacency" start="221" end="221" type="bool"/>
<field name="SVBI Payload Enable" start="220" end="220" type="bool"/>
<field name="SVBI Post-Increment Enable" start="219" end="219" type="bool"/>
diff --git a/src/intel/genxml/gen7.xml b/src/intel/genxml/gen7.xml
index 440258a..a351486 100644
--- a/src/intel/genxml/gen7.xml
+++ b/src/intel/genxml/gen7.xml
@@ -1157,7 +1157,10 @@
<field name="GS Invocations Increment Value" start="165" end="169" type="uint"/>
<field name="Include Primitive ID" start="164" end="164" type="bool"/>
<field name="Hint" start="163" end="163" type="uint"/>
- <field name="Reorder Enable" start="162" end="162" type="bool"/>
+ <field name="Reorder Mode" start="162" end="162" type="uint">
+ <value name="LEADING" value="0"/>
+ <value name="TRAILING" value="1"/>
+ </field>
<field name="Discard Adjacency" start="161" end="161" type="bool"/>
<field name="Function Enable" start="160" end="160" type="bool"/>
<field name="Semaphore Handle" start="192" end="203" type="offset"/>
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index b00707f..2631ed0 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1300,11 +1300,7 @@ emit_3dstate_gs(struct anv_pipeline *pipeline)
gs.ControlDataFormat = gs_prog_data->control_data_format;
gs.ControlDataHeaderSize = gs_prog_data->control_data_header_size_hwords;
gs.InstanceControl = MAX2(gs_prog_data->invocations, 1) - 1;
-#if GEN_GEN >= 8 || GEN_IS_HASWELL
gs.ReorderMode = TRAILING;
-#else
- gs.ReorderEnable = true;
-#endif
#if GEN_GEN >= 8
gs.ExpectedVertexCount = gs_prog_data->vertices_in;
--
git-series 0.9.1
More information about the mesa-dev
mailing list