summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2008-05-16 17:56:38 -0400
committerZack Rusin <zack@tungstengraphics.com>2008-05-17 13:58:45 -0400
commit0bf82c0111c9d5e33ffc76be2fd0d22eea316952 (patch)
tree0fe7b7405a247b32cf087516da60a17b6a0efcd4 /src
parenta7449d4d840148ccd9261b59e68d45e9d0d2be53 (diff)
cosmetic changes
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/gallivm/soabuiltins.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/soabuiltins.c b/src/gallium/auxiliary/gallivm/soabuiltins.c
index 62c75f18f4..78f84510e2 100644
--- a/src/gallium/auxiliary/gallivm/soabuiltins.c
+++ b/src/gallium/auxiliary/gallivm/soabuiltins.c
@@ -147,17 +147,16 @@ void max(float4 *res,
void lit(float4 *res,
float4 tmp0x, float4 tmp0y, float4 tmp0z, float4 tmp0w)
{
- const float4 zerovec = (float4) {0, 0, 0, 0};
+ const float4 zerovec = (float4) {0.0, 0.0, 0.0, 0.0};
const float4 min128 = (float4) {-128.f, -128.f, -128.f, -128.f};
const float4 plus128 = (float4) {128.f, 128.f, 128.f, 128.f};
res[0] = (float4){1.0, 1.0, 1.0, 1.0};
if (tmp0x.x > 0) {
- float4 tmpx = maxvec(tmpx, zerovec);
float4 tmpy = maxvec(tmp0y, zerovec);
float4 tmpw = minvec(tmp0w, plus128);
tmpw = maxvec(tmpw, min128);
- res[1] = tmpx;
+ res[1] = tmp0x;
res[2] = powvec(tmpy, tmpw);
} else {
res[1] = zerovec;