cell: note that dst reg writing needs clamping
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 22 Oct 2008 14:12:42 +0000 (08:12 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 22 Oct 2008 14:12:42 +0000 (08:12 -0600)
src/gallium/drivers/cell/ppu/cell_gen_fp.c

index 493ee1a0c9c04a452f9d2fda9235f6a4ca465d5e..d4d644d6e8121743f490a0e482e1432f8f094988 100644 (file)
@@ -349,6 +349,22 @@ store_dest_reg(struct codegen *gen,
                int value_reg, int channel,
                const struct tgsi_full_dst_register *dest)
 {
+   /*
+    * XXX need to implement dst reg clamping/saturation
+    */
+#if 0
+   switch (inst->Instruction.Saturate) {
+   case TGSI_SAT_NONE:
+      break;
+   case TGSI_SAT_ZERO_ONE:
+      break;
+   case TGSI_SAT_MINUS_PLUS_ONE:
+      break;
+   default:
+      assert( 0 );
+   }
+#endif
+
    switch (dest->DstRegister.File) {
    case TGSI_FILE_TEMPORARY:
       if (gen->if_nesting > 0) {