From fab17c1216e9ae03eaa035dd36dc773d442b345d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 18 Aug 2009 17:49:57 -0600 Subject: [PATCH] tgsi/sse: we don't implement saturation modes yet Fixes piglit fp-generic tests/shaders/generic/lrp_sat.fp, bug 23316. --- src/gallium/auxiliary/tgsi/tgsi_sse2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/tgsi_sse2.c index ba2bfdef062..571f98ae35e 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 ) { -- 2.30.2