Mesa (mesa_7_6_branch): tgsi/sse: Pass the lodbias, not zero. More comments.

Brian Paul brianp at kemper.freedesktop.org
Thu Sep 24 16:29:08 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: a64d4516a0d6219dec0b5b0622215918469faecc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a64d4516a0d6219dec0b5b0622215918469faecc

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Sep 24 10:26:56 2009 -0600

tgsi/sse: Pass the lodbias, not zero.  More comments.

This fixes the glean/glsl1 "texture2D(), with bias" test when using SSE.

---

 src/gallium/auxiliary/tgsi/tgsi_sse2.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/tgsi_sse2.c
index 3cdf8b9..1e71994 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_sse2.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_sse2.c
@@ -1431,11 +1431,11 @@ fetch_texel( struct tgsi_sampler **sampler,
    {
       float rgba[NUM_CHANNELS][QUAD_SIZE];
       (*sampler)->get_samples(*sampler, 
-                              &store[0], 
-                              &store[4], 
-                              &store[8], 
-                              0.0f, /*store[12],  lodbias */
-                              rgba);
+                              &store[0],  /* s */
+                              &store[4],  /* t */
+                              &store[8],  /* r */
+                              store[12],  /* lodbias */
+                              rgba);      /* results */
 
       memcpy( store, rgba, 16 * sizeof(float));
    }




More information about the mesa-commit mailing list