Module: Mesa
Branch: gallium-0.2
Commit: 0c1e98d9598bb5a30224583bdf211a1352b96d44
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c1e98d9598bb5a30224583bdf211a1352b96d44

Author: Brian Paul <[EMAIL PROTECTED]>
Date:   Wed Oct 22 08:12:42 2008 -0600

cell: note that dst reg writing needs clamping

---

 src/gallium/drivers/cell/ppu/cell_gen_fp.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/cell/ppu/cell_gen_fp.c 
b/src/gallium/drivers/cell/ppu/cell_gen_fp.c
index 493ee1a..d4d644d 100644
--- a/src/gallium/drivers/cell/ppu/cell_gen_fp.c
+++ b/src/gallium/drivers/cell/ppu/cell_gen_fp.c
@@ -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) {

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to