tgsi/ppc: we don't implement saturation modes yet
authorBrian Paul <brianp@vmware.com>
Tue, 18 Aug 2009 23:50:43 +0000 (17:50 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 18 Aug 2009 23:50:52 +0000 (17:50 -0600)
src/gallium/auxiliary/tgsi/tgsi_ppc.c

index 0c64ae5713100db80969b05529326239710f1542..2f8b0c4df0f50dddd6ff2524d743bd412779d1cb 100644 (file)
@@ -1107,6 +1107,11 @@ static int
 emit_instruction(struct gen_context *gen,
                  struct tgsi_full_instruction *inst)
 {
+
+   /* we don't handle saturation/clamping yet */
+   if (inst->Instruction.Saturate != TGSI_SAT_NONE)
+      return 0;
+
    switch (inst->Instruction.Opcode) {
    case TGSI_OPCODE_MOV:
    case TGSI_OPCODE_SWZ: