<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Sep 1, 2017 at 4:15 PM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
src/intel/genxml/gen4.xml | 2 +-<br>
src/intel/genxml/gen45.xml | 2 +-<br>
src/intel/genxml/gen5.xml | 2 +-<br>
src/mesa/drivers/dri/i965/<wbr>genX_state_upload.c | 10 ++++------<br>
4 files changed, 7 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/src/intel/genxml/gen4.xml b/src/intel/genxml/gen4.xml<br>
index 6f6f1bfeb09..6499346c999 100644<br>
--- a/src/intel/genxml/gen4.xml<br>
+++ b/src/intel/genxml/gen4.xml<br>
@@ -586,7 +586,7 @@<br>
<field name="TCX Address Control Mode" start="38" end="40" type="Texture_Coordinate_Mode"<wbr>/><br>
<field name="TCY Address Control Mode" start="35" end="37" type="Texture_Coordinate_Mode"<wbr>/><br>
<field name="TCZ Address Control Mode" start="32" end="34" type="Texture_Coordinate_Mode"<wbr>/><br>
- <field name="Border Color Pointer" start="69" end="95" type="offset"/><br>
+ <field name="Border Color Pointer" start="69" end="95" type="address"/><br>
<field name="ChromaKey Enable" start="121" end="121" type="bool"/><br>
<field name="ChromaKey Index" start="119" end="120" type="uint"/><br>
<field name="ChromaKey Mode" start="118" end="118" type="uint" prefix="KEYFILTER"><br>
diff --git a/src/intel/genxml/gen45.xml b/src/intel/genxml/gen45.xml<br>
index 7b2f7698274..0f905754071 100644<br>
--- a/src/intel/genxml/gen45.xml<br>
+++ b/src/intel/genxml/gen45.xml<br>
@@ -593,7 +593,7 @@<br>
<field name="TCX Address Control Mode" start="38" end="40" type="Texture_Coordinate_Mode"<wbr>/><br>
<field name="TCY Address Control Mode" start="35" end="37" type="Texture_Coordinate_Mode"<wbr>/><br>
<field name="TCZ Address Control Mode" start="32" end="34" type="Texture_Coordinate_Mode"<wbr>/><br>
- <field name="Border Color Pointer" start="69" end="95" type="offset"/><br>
+ <field name="Border Color Pointer" start="69" end="95" type="address"/><br>
<field name="Monochrome Filter Height" start="125" end="127" type="uint"/><br>
<field name="Monochrome Filter Width" start="122" end="124" type="uint"/><br>
<field name="ChromaKey Enable" start="121" end="121" type="bool"/><br>
diff --git a/src/intel/genxml/gen5.xml b/src/intel/genxml/gen5.xml<br>
index 36081875ea4..70f50076abf 100644<br>
--- a/src/intel/genxml/gen5.xml<br>
+++ b/src/intel/genxml/gen5.xml<br>
@@ -571,7 +571,7 @@<br>
<field name="TCX Address Control Mode" start="38" end="40" type="Texture_Coordinate_Mode"<wbr>/><br>
<field name="TCY Address Control Mode" start="35" end="37" type="Texture_Coordinate_Mode"<wbr>/><br>
<field name="TCZ Address Control Mode" start="32" end="34" type="Texture_Coordinate_Mode"<wbr>/><br>
- <field name="Border Color Pointer" start="69" end="95" type="offset"/><br>
+ <field name="Border Color Pointer" start="69" end="95" type="address"/><br>
<field name="Monochrome Filter Height" start="125" end="127" type="uint"/><br>
<field name="Monochrome Filter Width" start="122" end="124" type="uint"/><br>
<field name="ChromaKey Enable" start="121" end="121" type="bool"/><br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>genX_state_upload.c b/src/mesa/drivers/dri/i965/<wbr>genX_state_upload.c<br>
index 4eb1a79bcd4..7083e7b2d6b 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>genX_state_upload.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>genX_state_upload.c<br>
@@ -5008,13 +5008,11 @@ genX(update_sampler_state)(<wbr>struct brw_context *brw,<br>
texObj->StencilSampling,<br>
&border_color_offset);<br>
}<br>
- if (GEN_GEN < 6) {<br>
- samp_st.BorderColorPointer =<br>
- brw_emit_reloc(&brw->batch, batch_offset_for_sampler_state + 8,<br>
- brw-><a href="http://batch.bo" rel="noreferrer" target="_blank">batch.bo</a>, border_color_offset, 0);<br>
- } else {<br></blockquote><div><br></div><div>Oh, that's gross... Thanks for fixing this. Both are</div><div><br></div><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+#if GEN_GEN < 6<br>
+ samp_st.BorderColorPointer = ro_bo(brw-><a href="http://batch.bo" rel="noreferrer" target="_blank">batch.bo</a>, border_color_offset);<br>
+#else<br>
samp_st.BorderColorPointer = border_color_offset;<br>
- }<br>
+#endif<br>
<br>
#if GEN_GEN >= 8<br>
samp_st.LODPreClampMode = CLAMP_MODE_OGL;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.14.1<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>