tgsi/sse: we don't implement saturation modes yet
authorBrian Paul <brianp@vmware.com>
Tue, 18 Aug 2009 23:49:57 +0000 (17:49 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 18 Aug 2009 23:50:00 +0000 (17:50 -0600)
Fixes piglit fp-generic tests/shaders/generic/lrp_sat.fp, bug 23316.

src/gallium/auxiliary/tgsi/tgsi_sse2.c

index ba2bfdef0627a3b82ddfc5a5936c34d83dd2164d..571f98ae35e02636036ae19a30c5ea65de04faa2 100644 (file)
@@ -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 ) {