tgsi/sse: Pass the lodbias, not zero. More comments.
authorBrian Paul <brianp@vmware.com>
Thu, 24 Sep 2009 16:26:56 +0000 (10:26 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 24 Sep 2009 16:28:09 +0000 (10:28 -0600)
This fixes the glean/glsl1 "texture2D(), with bias" test when using SSE.

src/gallium/auxiliary/tgsi/tgsi_sse2.c

index 3cdf8b9f359cefb931e512bd99f660a1bb063553..1e719940ec52c21e18a67d8d18c77959316efde4 100644 (file)
@@ -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));
    }