gallium: clean-up, simplification of mipmapped textures
[mesa.git] / src / mesa / pipe / i915simple / i915_state.c
index 950ea52d6014ef369eb5f8f31d7bc2d456858de7..abd5571b885f807f39b1cb673a1d029b73a586ed 100644 (file)
@@ -250,6 +250,13 @@ i915_create_sampler_state(struct pipe_context *pipe,
    if (sampler->normalized_coords)
       cso->state[1] |= SS3_NORMALIZED_COORDS;
 
+   if (0) /* XXX not tested yet */
+   {
+      int minlod = (int) (16.0 * sampler->min_lod);
+      minlod = CLAMP(minlod, 0, 16 * 11);
+      cso->state[1] |= (minlod << SS3_MIN_LOD_SHIFT);
+   }
+
    {
       ubyte r = float_to_ubyte(sampler->border_color[0]);
       ubyte g = float_to_ubyte(sampler->border_color[1]);