diff options
author | Kenneth Graunke <[email protected]> | 2016-07-18 13:56:23 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-07-20 10:59:44 -0700 |
commit | 6b6727026228bd1eab715034416194317e4d0fc6 (patch) | |
tree | 2e371a08e56ae0d26a087d98b64031dbc6e3c62b /src/intel | |
parent | c31cf532af4c14ffb82ccbec2e69df82d56c4ef2 (diff) |
genxml: Add APIMODE_D3D missing enum values and improve consistency.
Cc: "12.0" <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/genxml/gen6.xml | 1 | ||||
-rw-r--r-- | src/intel/genxml/gen7.xml | 1 | ||||
-rw-r--r-- | src/intel/genxml/gen75.xml | 1 | ||||
-rw-r--r-- | src/intel/genxml/gen8.xml | 3 | ||||
-rw-r--r-- | src/intel/genxml/gen9.xml | 3 | ||||
-rw-r--r-- | src/intel/vulkan/gen8_pipeline.c | 2 |
6 files changed, 8 insertions, 3 deletions
diff --git a/src/intel/genxml/gen6.xml b/src/intel/genxml/gen6.xml index c465288e891..cf94efc28de 100644 --- a/src/intel/genxml/gen6.xml +++ b/src/intel/genxml/gen6.xml @@ -787,6 +787,7 @@ <field name="CLIP Enable" start="95" end="95" type="bool"/> <field name="API Mode" start="94" end="94" type="uint"> <value name="APIMODE_OGL" value="0"/> + <value name="APIMODE_D3D" value="1"/> </field> <field name="Viewport XY ClipTest Enable" start="92" end="92" type="bool"/> <field name="Viewport Z ClipTest Enable" start="91" end="91" type="bool"/> diff --git a/src/intel/genxml/gen7.xml b/src/intel/genxml/gen7.xml index b1c324f66d4..108409393d9 100644 --- a/src/intel/genxml/gen7.xml +++ b/src/intel/genxml/gen7.xml @@ -959,6 +959,7 @@ <field name="Clip Enable" start="95" end="95" type="bool"/> <field name="API Mode" start="94" end="94" type="uint"> <value name="APIMODE_OGL" value="0"/> + <value name="APIMODE_D3D" value="1"/> </field> <field name="Viewport XY ClipTest Enable" start="92" end="92" type="bool"/> <field name="Viewport Z ClipTest Enable" start="91" end="91" type="bool"/> diff --git a/src/intel/genxml/gen75.xml b/src/intel/genxml/gen75.xml index 1239164d400..b7bf13a08d5 100644 --- a/src/intel/genxml/gen75.xml +++ b/src/intel/genxml/gen75.xml @@ -1068,6 +1068,7 @@ <field name="Clip Enable" start="95" end="95" type="bool"/> <field name="API Mode" start="94" end="94" type="uint"> <value name="APIMODE_OGL" value="0"/> + <value name="APIMODE_D3D" value="1"/> </field> <field name="Viewport XY ClipTest Enable" start="92" end="92" type="bool"/> <field name="Viewport Z ClipTest Enable" start="91" end="91" type="bool"/> diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml index 386e8fce875..dfeda9462ea 100644 --- a/src/intel/genxml/gen8.xml +++ b/src/intel/genxml/gen8.xml @@ -1115,7 +1115,8 @@ <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/> <field name="Clip Enable" start="95" end="95" type="bool"/> <field name="API Mode" start="94" end="94" type="uint"> - <value name="OGL" value="0"/> + <value name="APIMODE_OGL" value="0"/> + <value name="APIMODE_D3D" value="1"/> </field> <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/> <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/> diff --git a/src/intel/genxml/gen9.xml b/src/intel/genxml/gen9.xml index 896143b2f64..06a3cd4de39 100644 --- a/src/intel/genxml/gen9.xml +++ b/src/intel/genxml/gen9.xml @@ -1167,7 +1167,8 @@ <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/> <field name="Clip Enable" start="95" end="95" type="bool"/> <field name="API Mode" start="94" end="94" type="uint"> - <value name="OGL" value="0"/> + <value name="APIMODE_OGL" value="0"/> + <value name="APIMODE_D3D" value="1"/> </field> <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/> <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/> diff --git a/src/intel/vulkan/gen8_pipeline.c b/src/intel/vulkan/gen8_pipeline.c index 4e04aadfe89..52792a9ad17 100644 --- a/src/intel/vulkan/gen8_pipeline.c +++ b/src/intel/vulkan/gen8_pipeline.c @@ -190,7 +190,7 @@ genX(graphics_pipeline_create)( anv_batch_emit(&pipeline->batch, GENX(3DSTATE_CLIP), clip) { clip.ClipEnable = !(extra && extra->use_rectlist); clip.EarlyCullEnable = true; - clip.APIMode = 1; /* D3D */ + clip.APIMode = APIMODE_D3D; clip.ViewportXYClipTestEnable = true; clip.ClipMode = |