diff options
author | Eric Anholt <eric@anholt.net> | 2010-12-07 11:32:50 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-12-07 12:21:08 -0800 |
commit | 72845d206e692581b6084c56b8d1f3bc689e8a03 (patch) | |
tree | a43818bb9e7b476755347dfd938ee6b1a4f42238 /src/mesa | |
parent | ed492e954480326930e83ff62da3f35f0548d774 (diff) |
i965: Handle saturates on gen6 math instructions.
We get saturate as an argument to brw_math() instead of as compile
state, since that's how the pre-gen6 send instructions work. Fixes
fp-ex2-sat.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index c181c314bf..96aa046b64 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -1281,6 +1281,7 @@ void brw_math( struct brw_compile *p, * becomes FC[3:0] and ThreadCtrl becomes FC[5:4]. */ insn->header.destreg__conditionalmod = function; + insn->header.saturate = saturate; brw_set_dest(p, insn, dest); brw_set_src0(insn, src); @@ -1371,6 +1372,7 @@ void brw_math_16( struct brw_compile *p, * becomes FC[3:0] and ThreadCtrl becomes FC[5:4]. */ insn->header.destreg__conditionalmod = function; + insn->header.saturate = saturate; brw_set_dest(p, insn, dest); brw_set_src0(insn, src); |