Mesa (master): i965: Clean up a warning in the old fragment backend.
Kenneth Graunke
kwg at kemper.freedesktop.org
Thu Oct 14 20:26:51 UTC 2010
Module: Mesa
Branch: master
Commit: 4bab22bca36696a7a1ed6ea3de9b993ffd181f30
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bab22bca36696a7a1ed6ea3de9b993ffd181f30
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Oct 14 13:19:23 2010 -0700
i965: Clean up a warning in the old fragment backend.
Hopefully this code can just go away soon.
---
src/mesa/drivers/dri/i965/brw_wm_emit.c | 6 +++++-
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 f52372e..cb71c66 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:
More information about the mesa-commit
mailing list