genxml: Make Border Color Pointer an address on Gen4-5, not an offset.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 31 Aug 2017 22:45:57 +0000 (15:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Sep 2017 19:56:18 +0000 (12:56 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/genxml/gen4.xml
src/intel/genxml/gen45.xml
src/intel/genxml/gen5.xml
src/mesa/drivers/dri/i965/genX_state_upload.c

index 6f6f1bfeb09ad576ed3a4ccea56eec879f5d96b5..6499346c9998044e93ff4bb3689eed90e0514c12 100644 (file)
     <field name="TCX Address Control Mode" start="38" end="40" type="Texture_Coordinate_Mode"/>
     <field name="TCY Address Control Mode" start="35" end="37" type="Texture_Coordinate_Mode"/>
     <field name="TCZ Address Control Mode" start="32" end="34" type="Texture_Coordinate_Mode"/>
-    <field name="Border Color Pointer" start="69" end="95" type="offset"/>
+    <field name="Border Color Pointer" start="69" end="95" type="address"/>
     <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
     <field name="ChromaKey Index" start="119" end="120" type="uint"/>
     <field name="ChromaKey Mode" start="118" end="118" type="uint" prefix="KEYFILTER">
index 7b2f7698274b3ddf78fc2acfd44b9eb46f338bc3..0f905754071fbf79c5aedd10113bddfc50932ab5 100644 (file)
     <field name="TCX Address Control Mode" start="38" end="40" type="Texture_Coordinate_Mode"/>
     <field name="TCY Address Control Mode" start="35" end="37" type="Texture_Coordinate_Mode"/>
     <field name="TCZ Address Control Mode" start="32" end="34" type="Texture_Coordinate_Mode"/>
-    <field name="Border Color Pointer" start="69" end="95" type="offset"/>
+    <field name="Border Color Pointer" start="69" end="95" type="address"/>
     <field name="Monochrome Filter Height" start="125" end="127" type="uint"/>
     <field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
     <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
index 36081875ea4c512298929ba45784dd2f37a367fe..70f50076abfbe2f1b10e0ef97cc3a0349d059ae7 100644 (file)
     <field name="TCX Address Control Mode" start="38" end="40" type="Texture_Coordinate_Mode"/>
     <field name="TCY Address Control Mode" start="35" end="37" type="Texture_Coordinate_Mode"/>
     <field name="TCZ Address Control Mode" start="32" end="34" type="Texture_Coordinate_Mode"/>
-    <field name="Border Color Pointer" start="69" end="95" type="offset"/>
+    <field name="Border Color Pointer" start="69" end="95" type="address"/>
     <field name="Monochrome Filter Height" start="125" end="127" type="uint"/>
     <field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
     <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
index 4eb1a79bcd47c07eff3d2e4c3f15cbab2aefc6fd..7083e7b2d6b7a6fbcae512aeded0840f45eeb196 100644 (file)
@@ -5008,13 +5008,11 @@ genX(update_sampler_state)(struct brw_context *brw,
                                  texObj->StencilSampling,
                                  &border_color_offset);
    }
-   if (GEN_GEN < 6) {
-      samp_st.BorderColorPointer =
-         brw_emit_reloc(&brw->batch, batch_offset_for_sampler_state + 8,
-                        brw->batch.bo, border_color_offset, 0);
-   } else {
+#if GEN_GEN < 6
+      samp_st.BorderColorPointer = ro_bo(brw->batch.bo, border_color_offset);
+#else
       samp_st.BorderColorPointer = border_color_offset;
-   }
+#endif
 
 #if GEN_GEN >= 8
    samp_st.LODPreClampMode = CLAMP_MODE_OGL;