diff options
author | Brian Paul <[email protected]> | 2008-10-22 08:12:42 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-10-22 08:12:42 -0600 |
commit | 0c1e98d9598bb5a30224583bdf211a1352b96d44 (patch) | |
tree | ac29bdfaade1a2b6da63d9d4c1d24471339cdded | |
parent | 7004582c1894ede839c44e292b413fe4916d7e9e (diff) |
cell: note that dst reg writing needs clamping
-rw-r--r-- | 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 493ee1a0c9c..d4d644d6e81 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) { |