Mesa (gallium-0.2): cell: note that dst reg writing needs clamping
Brian Paul
brianp at kemper.freedesktop.org
Wed Oct 22 17:15:51 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 0c1e98d9598bb5a30224583bdf211a1352b96d44
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c1e98d9598bb5a30224583bdf211a1352b96d44
Author: Brian Paul <brian.paul at tungstengraphics.com>
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) {
More information about the mesa-commit
mailing list