i965: Clean up a warning in the old fragment backend.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Oct 2010 20:19:23 +0000 (13:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Oct 2010 20:19:23 +0000 (13:19 -0700)
Hopefully this code can just go away soon.

src/mesa/drivers/dri/i965/brw_wm_emit.c

index f52372ee46f8522b8bdc5a1ad11400a507cf1870..cb71c665b47c52becf738811f32cd81e5f595229 100644 (file)
@@ -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: