summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_lowering.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-12-06 13:36:02 -0500
committerRob Clark <[email protected]>2014-12-09 17:47:44 -0500
commit219440ddebcd804d6b8cb0a79c4bbdd7701ea355 (patch)
tree9b766f9e18bdf05d4652e179615114a3640a5531 /src/gallium/auxiliary/tgsi/tgsi_lowering.h
parentf1b5f2b157a092e93590bd43544fbf2671edab36 (diff)
tgsi/lowering: add support to lower TXP (v2)
v2: actually do perspective divide for RECT/SHADOWRECT Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_lowering.h')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_lowering.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_lowering.h b/src/gallium/auxiliary/tgsi/tgsi_lowering.h
index 55e15070dd4..52c204fc55e 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_lowering.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_lowering.h
@@ -69,6 +69,9 @@ struct tgsi_lowering_config
unsigned lower_DP2:1;
unsigned lower_DP2A:1;
+ /* bitmask of (1 << TGSI_TEXTURE_type): */
+ unsigned lower_TXP;
+
/* To emulate certain texture wrap modes, this can be used
* to saturate the specified tex coord to [0.0, 1.0]. The
* bits are according to sampler #, ie. if, for example: