diff options
author | Brian Paul <brianp@vmware.com> | 2009-08-18 17:49:57 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-08-18 17:50:00 -0600 |
commit | fab17c1216e9ae03eaa035dd36dc773d442b345d (patch) | |
tree | a32f120d1286326cdc0ae8f9e3e17a8c6bf0e440 | |
parent | ee0984e299f7a48fbd3a0172ec9c471e0e8cbb92 (diff) |
tgsi/sse: we don't implement saturation modes yet
Fixes piglit fp-generic tests/shaders/generic/lrp_sat.fp, bug 23316.
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_sse2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/tgsi_sse2.c index ba2bfdef06..571f98ae35 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_sse2.c +++ b/src/gallium/auxiliary/tgsi/tgsi_sse2.c @@ -1502,6 +1502,10 @@ emit_instruction( if (indirect_temp_reference(inst)) return FALSE; + /* we don't handle saturation/clamping yet */ + if (inst->Instruction.Saturate != TGSI_SAT_NONE) + return FALSE; + switch (inst->Instruction.Opcode) { case TGSI_OPCODE_ARL: FOR_EACH_DST0_ENABLED_CHANNEL( *inst, chan_index ) { |