aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_lowering.h
diff options
context:
space:
mode:
authorRussell King <[email protected]>2016-04-13 18:42:40 -0400
committerRob Clark <[email protected]>2016-04-19 16:04:44 -0400
commit65460cf4c87b9b0c423db80fbd31fd44fbfde7ce (patch)
tree6dacd87d3a1aed6ef4b1dd3abf158af65a3f195a /src/gallium/auxiliary/tgsi/tgsi_lowering.h
parent23e870a888e24b25f9b61a9b1e486e3ef2c7a12c (diff)
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 <[email protected]> Reviewed-by: Rob Clark <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_lowering.h')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_lowering.h1
1 files changed, 1 insertions, 0 deletions
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;