summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-06-05 18:00:58 +0200
committerMaciej Cencora <[email protected]>2009-06-11 23:24:25 +0200
commitb4ebd1c191e6760b334c35fa1df025ad129cc449 (patch)
tree5b930ed15460058aafbdb1f42e7067563a0dbdaa /src/mesa/drivers
parentb445e5486804581ba4a7d1fce80c3ad2ed773325 (diff)
r300: hw doesn't support saturation for tex instructions
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/r300_fragprog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_fragprog.c b/src/mesa/drivers/dri/r300/r300_fragprog.c
index ea530fd00e7..55c1cfe6317 100644
--- a/src/mesa/drivers/dri/r300/r300_fragprog.c
+++ b/src/mesa/drivers/dri/r300/r300_fragprog.c
@@ -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;
}