summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-10-14 13:19:23 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-10-14 13:19:23 -0700
commit4bab22bca36696a7a1ed6ea3de9b993ffd181f30 (patch)
treea17511b84856213777deaf21750b3dbcd00dbb3e
parenta81d423d93f22a948f3aa4bf73dc6b1a3b70192f (diff)
i965: Clean up a warning in the old fragment backend.
Hopefully this code can just go away soon.
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_emit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_emit.c b/src/mesa/drivers/dri/i965/brw_wm_emit.c
index f52372ee46..cb71c665b4 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_emit.c
@@ -1772,7 +1772,11 @@ void brw_wm_emit( struct brw_wm_compile *c )
break;
case OPCODE_TRUNC:
- emit_alu1(p, brw_RNDZ, dst, dst_flags, args[0]);
+ for (i = 0; i < 4; i++) {
+ if (dst_flags & (1<<i)) {
+ brw_RNDZ(p, dst[i], args[0][i]);
+ }
+ }
break;
case OPCODE_LRP: