i915: added to-do note about setting the max_lod register to get proper min/mag filte...
authorBrian <brian.paul@tungstengraphics.com>
Fri, 21 Mar 2008 16:03:23 +0000 (10:03 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 21 Mar 2008 17:10:42 +0000 (11:10 -0600)
src/gallium/drivers/i915simple/i915_state_sampler.c

index 9dbb1b1b238af803890097d0d58b0646ce75f4f0..84f6529a3ad17fd2ed897ce52825166e8ab630a7 100644 (file)
@@ -206,6 +206,12 @@ i915_update_texture(struct i915_context *i915, uint unit,
        | format
        | MS3_USE_FENCE_REGS);
 
+   /*
+    * XXX sampler->max_lod should be used to program the MAX_LOD field below.
+    * Also, when min_filter != mag_filter and there's just one mipmap level,
+    * set max_lod = 1 to make sure i915 chooses between min/mag filtering.
+    */
+
    /* MS4 state */
    state[1] =
       ((((pitch / 4) - 1) << MS4_PITCH_SHIFT)