aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a6xx/fd6_context.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-10-10 15:59:29 -0400
committerRob Clark <[email protected]>2018-10-17 12:44:48 -0400
commit1b9d69410ce0708f526f5e846e369b781897d10f (patch)
tree5a1f46909cee7617824b105f25f6331376df1f75 /src/gallium/drivers/freedreno/a6xx/fd6_context.h
parente8606b11dd5f8a2c8df16a719b0fc8852ceb7977 (diff)
freedreno/a6xx: texture state obj
Unfortunately gallium doesn't match what the hw wants perfectly here, in using a separate CSO for each texture/sampler. So we have to use a hash table to map the collection of texture/samplers to hw state object. We probably could use separate hw state objects for texture and sampler state, but mesa/st tends to update the tex and samp state together. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a6xx/fd6_context.h')
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_context.h b/src/gallium/drivers/freedreno/a6xx/fd6_context.h
index 30cc26001cd..85245c8a65f 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_context.h
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_context.h
@@ -105,6 +105,9 @@ struct fd6_context {
/*{*/
struct fd6_streamout_state tf;
/*}*/
+
+ uint16_t tex_seqno;
+ struct hash_table *tex_cache;
};
static inline struct fd6_context *