diff options
author | Kenneth Graunke <[email protected]> | 2010-10-14 13:19:23 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-10-14 13:19:23 -0700 |
commit | 4bab22bca36696a7a1ed6ea3de9b993ffd181f30 (patch) | |
tree | a17511b84856213777deaf21750b3dbcd00dbb3e /src | |
parent | a81d423d93f22a948f3aa4bf73dc6b1a3b70192f (diff) |
i965: Clean up a warning in the old fragment backend.
Hopefully this code can just go away soon.
Diffstat (limited to 'src')
-rw-r--r-- | 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 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<<i)) { + brw_RNDZ(p, dst[i], args[0][i]); + } + } break; case OPCODE_LRP: |