From 65460cf4c87b9b0c423db80fbd31fd44fbfde7ce Mon Sep 17 00:00:00 2001 From: Russell King Date: Wed, 13 Apr 2016 18:42:40 -0400 Subject: tgsi/lowering: add support for lowering TRUNC Add support for lowering TRUNC using the following sequence: FRC tmpA, |src| SUB tmpA, |src|, tmpA CMP dst, -tmpA, tmpA Note that this is incompatible with FRC lowering. Signed-off-by: Russell King Reviewed-by: Rob Clark Signed-off-by: Rob Clark --- src/gallium/auxiliary/tgsi/tgsi_lowering.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/auxiliary/tgsi/tgsi_lowering.h') diff --git a/src/gallium/auxiliary/tgsi/tgsi_lowering.h b/src/gallium/auxiliary/tgsi/tgsi_lowering.h index a96d85dd155..20e4f843a92 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_lowering.h +++ b/src/gallium/auxiliary/tgsi/tgsi_lowering.h @@ -70,6 +70,7 @@ struct tgsi_lowering_config unsigned lower_DP2A:1; unsigned lower_FLR:1; unsigned lower_CEIL:1; + unsigned lower_TRUNC:1; /* bitmask of (1 << TGSI_TEXTURE_type): */ unsigned lower_TXP; -- cgit v1.2.3