genxml: Make the border color pointer consistent across gens

This commit is contained in:
Jason Ekstrand 2016-03-01 14:43:05 -08:00
parent eecd1f8001
commit e941fd8470
3 changed files with 3 additions and 7 deletions

View file

@ -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"/>

View file

@ -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"/>

View file

@ -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,