summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Antognolli <[email protected]>2017-06-13 16:47:51 -0700
committerRafael Antognolli <[email protected]>2017-06-21 10:16:05 -0700
commitce728594fdc7179d4b346ab342535de84179f172 (patch)
treeef9a1af10a4af336a1e14d4e1bb7fefd9fc77b5f
parent44415056e7b5cb0137ccc843ab0a4c803d1a38c8 (diff)
intel/genxml: Normalize URB Data field in WM_STATE.
On gen6+, this is called "Dispatch GRF Start Register For Constant/Setup Data 0", while on gen5 and lower it's called only "Dispatch GRF Start Register For URB Data", but it's essentially the same thing (URB data), so rename it to match newer gens and simplify the C code that handles it. Signed-off-by: Rafael Antognolli <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/intel/genxml/gen4.xml2
-rw-r--r--src/intel/genxml/gen45.xml2
-rw-r--r--src/intel/genxml/gen5.xml2
-rw-r--r--src/mesa/drivers/dri/i965/gen4_blorp_exec.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/genxml/gen4.xml b/src/intel/genxml/gen4.xml
index f4ca3f09ec9..6f6f1bfeb09 100644
--- a/src/intel/genxml/gen4.xml
+++ b/src/intel/genxml/gen4.xml
@@ -783,7 +783,7 @@
<field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
<field name="Setup URB Entry Read Length" start="107" end="112" type="uint"/>
<field name="Setup URB Entry Read Offset" start="100" end="105" type="uint"/>
- <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
+ <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="96" end="99" type="uint"/>
<field name="Sampler State Pointer" start="133" end="159" type="address"/>
<field name="Sampler Count" start="130" end="132" type="uint"/>
<field name="Statistics Enable" start="128" end="128" type="bool"/>
diff --git a/src/intel/genxml/gen45.xml b/src/intel/genxml/gen45.xml
index 5c221b78432..7b2f7698274 100644
--- a/src/intel/genxml/gen45.xml
+++ b/src/intel/genxml/gen45.xml
@@ -798,7 +798,7 @@
<field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
<field name="Setup URB Entry Read Length" start="107" end="112" type="uint"/>
<field name="Setup URB Entry Read Offset" start="100" end="105" type="uint"/>
- <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
+ <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="96" end="99" type="uint"/>
<field name="Sampler State Pointer" start="133" end="159" type="address"/>
<field name="Sampler Count" start="130" end="132" type="uint"/>
<field name="Statistics Enable" start="128" end="128" type="bool"/>
diff --git a/src/intel/genxml/gen5.xml b/src/intel/genxml/gen5.xml
index 28d9dd501eb..44dd0d10aa3 100644
--- a/src/intel/genxml/gen5.xml
+++ b/src/intel/genxml/gen5.xml
@@ -893,7 +893,7 @@
<field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
<field name="Setup URB Entry Read Length" start="107" end="112" type="uint"/>
<field name="Setup URB Entry Read Offset" start="100" end="105" type="uint"/>
- <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
+ <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="96" end="99" type="uint"/>
<field name="Sampler State Pointer" start="133" end="159" type="address"/>
<field name="Sampler Count" start="130" end="132" type="uint"/>
<field name="Statistics Enable" start="128" end="128" type="bool"/>
diff --git a/src/mesa/drivers/dri/i965/gen4_blorp_exec.h b/src/mesa/drivers/dri/i965/gen4_blorp_exec.h
index f1d9394e243..764b1989aaa 100644
--- a/src/mesa/drivers/dri/i965/gen4_blorp_exec.h
+++ b/src/mesa/drivers/dri/i965/gen4_blorp_exec.h
@@ -125,7 +125,7 @@ blorp_emit_wm_state(struct blorp_batch *batch,
}
if (prog_data) {
- wm.DispatchGRFStartRegisterForURBData =
+ wm.DispatchGRFStartRegisterForConstantSetupData0 =
prog_data->base.dispatch_grf_start_reg;
wm.SetupURBEntryReadLength = prog_data->num_varying_inputs * 2;
wm.SetupURBEntryReadOffset = 0;