Browse Source

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

This fixes the glean/glsl1 "texture2D(), with bias" test when using SSE.
tags/mesa_7_6_rc1
Brian Paul 16 years ago
parent
commit
a64d4516a0
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/gallium/auxiliary/tgsi/tgsi_sse2.c

+ 5
- 5
src/gallium/auxiliary/tgsi/tgsi_sse2.c View 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));
}

Loading…
Cancel
Save