summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-01 14:43:05 -0800
committerJason Ekstrand <[email protected]>2016-03-01 14:43:05 -0800
commite941fd84707d4ed04a683f8862d184956a60f9ad (patch)
treec3d8d5c5f5e9a9a46294a1e9d74e373c4bbf564c /src
parenteecd1f80011701de6174f22106014910c9c79484 (diff)
genxml: Make the border color pointer consistent across gens
Diffstat (limited to 'src')
-rw-r--r--src/intel/genxml/gen8.xml2
-rw-r--r--src/intel/genxml/gen9.xml2
-rw-r--r--src/intel/vulkan/genX_state.c6
3 files changed, 3 insertions, 7 deletions
diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml
index 9a52fbaa330..96eda703453 100644
--- a/src/intel/genxml/gen8.xml
+++ b/src/intel/genxml/gen8.xml
@@ -412,7 +412,7 @@
<value name="PROGRAMMED" value="0"/>
<value name="OVERRIDE" value="1"/>
</field>
- <field name="Indirect State Pointer" start="70" end="87" type="uint"/>
+ <field name="Border Color Pointer" start="70" end="87" type="offset"/>
<field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
<value name="MIPNONE" value="0"/>
<value name="MIPFILTER" value="1"/>
diff --git a/src/intel/genxml/gen9.xml b/src/intel/genxml/gen9.xml
index 2b73f5f2a39..79d3006d24b 100644
--- a/src/intel/genxml/gen9.xml
+++ b/src/intel/genxml/gen9.xml
@@ -437,7 +437,7 @@
<value name="PROGRAMMED" value="0"/>
<value name="OVERRIDE" value="1"/>
</field>
- <field name="Indirect State Pointer" start="70" end="87" type="uint"/>
+ <field name="Border Color Pointer" start="70" end="87" type="offset"/>
<field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
<value name="MIPNONE" value="0"/>
<value name="MIPFILTER" value="1"/>
diff --git a/src/intel/vulkan/genX_state.c b/src/intel/vulkan/genX_state.c
index 866f1bfd337..63ea26937e5 100644
--- a/src/intel/vulkan/genX_state.c
+++ b/src/intel/vulkan/genX_state.c
@@ -231,11 +231,7 @@ VkResult genX(CreateSampler)(
.ShadowFunction = vk_to_gen_compare_op[pCreateInfo->compareOp],
.CubeSurfaceControlMode = OVERRIDE,
-#if GEN_GEN >= 8
- .IndirectStatePointer = border_color_offset >> 6,
-#else
- .BorderColorPointer = border_color_offset >> 5,
-#endif
+ .BorderColorPointer = border_color_offset,
#if GEN_GEN >= 8
.LODClampMagnificationMode = MIPNONE,