summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.h
diff options
context:
space:
mode:
authorVincent Lejeune <[email protected]>2013-10-05 16:04:48 +0200
committerVincent Lejeune <[email protected]>2013-10-13 20:03:42 +0200
commit6e51c2a941955fd2a34d62437fc149e633e79ec7 (patch)
treedeebf3e85f4c9dcfc8efd0cd8328f1dc01c371be /src/gallium/drivers/radeonsi/si_state.h
parent453ea2d309c0314bea8a209f536e2b3c2c4d92c6 (diff)
radeonsi: Allow Sinking pass to move preloaded const/res/sampl
This fixes a crash in Unigine Heaven 3.0, and probably in some others apps.
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index 94a1521cdfc..6dbf8806b84 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -107,6 +107,7 @@ union si_state {
*/
#define FMASK_TEX_OFFSET NUM_TEX_UNITS
#define NUM_SAMPLER_VIEWS (FMASK_TEX_OFFSET+NUM_TEX_UNITS)
+#define NUM_SAMPLER_STATES NUM_TEX_UNITS
#define NUM_CONST_BUFFERS 2