aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-08-06 08:53:27 +0200
committerMarek Olšák <[email protected]>2013-08-17 01:48:25 +0200
commitf671dfa8aaa90a76b7a426ee83ecd9304ee4fdc8 (patch)
tree2f0781a8995c432c4c411d05d7ba71737cff99c2 /src/gallium/drivers/radeonsi/si_state.h
parent3c3feb38f44d8512a1a11f9171bf8ca4712f864c (diff)
radeonsi: add FMASK texture binding slots and resource setup (v2)
v2: bind FMASK textures to shader resource slots 16..31 Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index 30043a78777..abc2512a532 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -116,6 +116,12 @@ union si_state {
#define NUM_TEX_UNITS 16
+/* User sampler views: 0..15
+ * FMASK sampler views: 16..31 (no sampler states)
+ */
+#define FMASK_TEX_OFFSET NUM_TEX_UNITS
+#define NUM_SAMPLER_VIEWS (FMASK_TEX_OFFSET+NUM_TEX_UNITS)
+
/* This represents resource descriptors in memory, such as buffer resources,
* image resources, and sampler states.
*/
@@ -150,8 +156,8 @@ struct si_descriptors {
struct si_sampler_views {
struct si_descriptors desc;
- struct pipe_sampler_view *views[NUM_TEX_UNITS];
- const uint32_t *desc_data[NUM_TEX_UNITS];
+ struct pipe_sampler_view *views[NUM_SAMPLER_VIEWS];
+ const uint32_t *desc_data[NUM_SAMPLER_VIEWS];
};
#define si_pm4_block_idx(member) \