r300: hw doesn't support saturation for tex instructions
authorMaciej Cencora <m.cencora@gmail.com>
Fri, 5 Jun 2009 16:00:58 +0000 (18:00 +0200)
committerMaciej Cencora <m.cencora@gmail.com>
Thu, 11 Jun 2009 21:24:25 +0000 (23:24 +0200)
src/mesa/drivers/dri/r300/r300_fragprog.c

index ea530fd00e7f6ab2afb1b8bfef184c3f1a9207e1..55c1cfe63179fbd921b6b300d5f314607558d909 100644 (file)
@@ -140,6 +140,8 @@ GLboolean r300_transform_TEX(
                        inst.DstReg.Index = tempreg;
                        inst.DstReg.WriteMask = WRITEMASK_XYZW;
                        destredirect = GL_TRUE;
+               } else if (inst.SaturateMode) {
+                       destredirect = GL_TRUE;
                }
        }
 
@@ -219,6 +221,7 @@ GLboolean r300_transform_TEX(
 
                tgt->Opcode = OPCODE_MOV;
                tgt->DstReg = orig_inst->DstReg;
+               tgt->SaturateMode = inst.SaturateMode;
                tgt->SrcReg[0].File = PROGRAM_TEMPORARY;
                tgt->SrcReg[0].Index = inst.DstReg.Index;
        }