summaryrefslogtreecommitdiffstats
path: root/src/mesa/math/m_translate.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-03-05 17:23:42 -0700
committerBrian Paul <[email protected]>2009-03-05 17:25:25 -0700
commit348580197802406fc36219dc3f1ab90fbb8f4717 (patch)
tree112cc64b328a32c484893ffdee1cf81ebfada688 /src/mesa/math/m_translate.c
parentbe8c0b25eaf67b7deefe7844d0b8ed19abad8d86 (diff)
i965: fix emit_math1() function used for scalar instructions
Instructions such as RCP, RSQ, LOG must smear the result of the function across the dest register's X, Y, Z and W channels (subject to write masking). Before this change, only the X component was getting written. Among other things, this fixes cube map texture sampling in GLSL shaders (since cube lookups involve normalizing the texcoord).
Diffstat (limited to 'src/mesa/math/m_translate.c')
0 files changed, 0 insertions, 0 deletions