From: Kenneth Graunke Date: Thu, 14 Oct 2010 20:19:23 +0000 (-0700) Subject: i965: Clean up a warning in the old fragment backend. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bab22bca36696a7a1ed6ea3de9b993ffd181f30;p=mesa.git i965: Clean up a warning in the old fragment backend. Hopefully this code can just go away soon. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_emit.c b/src/mesa/drivers/dri/i965/brw_wm_emit.c index f52372ee46f..cb71c665b47 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<