summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a4xx/fd4_context.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-04-22 13:05:53 -0400
committerRob Clark <[email protected]>2015-04-22 13:20:28 -0400
commit13527df143be1ca6e2f69bf4728f69efaebb3b13 (patch)
tree68733b911437aea29dcd1f8c438489701c88cf8a /src/gallium/drivers/freedreno/a4xx/fd4_context.h
parent48a651e98ce764a9dae3d4dfd6e18044414be18b (diff)
freedreno/a4xx: wire up integer texture sampling
Similar to a3xx, the compiler needs to know the return type of the sam, etc, instructions. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a4xx/fd4_context.h')
-rw-r--r--src/gallium/drivers/freedreno/a4xx/fd4_context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_context.h b/src/gallium/drivers/freedreno/a4xx/fd4_context.h
index 87e69fa613a..384602a2e4f 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_context.h
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_context.h
@@ -76,12 +76,15 @@ struct fd4_context {
/* bitmask of sampler which needs coords clamped for vertex
* shader:
*/
- unsigned vsaturate_s, vsaturate_t, vsaturate_r;
+ uint16_t vsaturate_s, vsaturate_t, vsaturate_r;
/* bitmask of sampler which needs coords clamped for frag
* shader:
*/
- unsigned fsaturate_s, fsaturate_t, fsaturate_r;
+ uint16_t fsaturate_s, fsaturate_t, fsaturate_r;
+
+ /* bitmask of integer texture samplers */
+ uint16_t vinteger_s, finteger_s;
/* some state changes require a different shader variant. Keep
* track of this so we know when we need to re-emit shader state