summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_state.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-10-06 12:42:56 +0800
committerChia-I Wu <[email protected]>2014-10-06 15:10:30 +0800
commitf358462640beb7660b9ce2a31d5367fc33421ee1 (patch)
tree409abd7b13805c8ca8b4d8aec76fedf81ed65af0 /src/gallium/drivers/ilo/ilo_state.h
parentca824e69403a32144328d1fb7987d0537e88ee04 (diff)
ilo: let shaders determine surface counts
When a shader needs N surfaces, we should upload N surfaces and not depend on how many are bound. This commit is larger than it should be because we did not export how many surfaces a surface uses before. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_state.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.h b/src/gallium/drivers/ilo/ilo_state.h
index c371716118c..a1d4b7bffcb 100644
--- a/src/gallium/drivers/ilo/ilo_state.h
+++ b/src/gallium/drivers/ilo/ilo_state.h
@@ -43,17 +43,7 @@
#define ILO_MAX_SO_BUFFERS 4
#define ILO_MAX_VIEWPORTS 1
-#define ILO_MAX_VS_SURFACES (ILO_MAX_CONST_BUFFERS + ILO_MAX_SAMPLER_VIEWS)
-#define ILO_VS_CONST_SURFACE(i) (i)
-#define ILO_VS_TEXTURE_SURFACE(i) (ILO_MAX_CONST_BUFFERS + i)
-
-#define ILO_MAX_GS_SURFACES (ILO_MAX_SO_BINDINGS)
-#define ILO_GS_SO_SURFACE(i) (i)
-
-#define ILO_MAX_WM_SURFACES (ILO_MAX_DRAW_BUFFERS + ILO_MAX_CONST_BUFFERS + ILO_MAX_SAMPLER_VIEWS)
-#define ILO_WM_DRAW_SURFACE(i) (i)
-#define ILO_WM_CONST_SURFACE(i) (ILO_MAX_DRAW_BUFFERS + i)
-#define ILO_WM_TEXTURE_SURFACE(i) (ILO_MAX_DRAW_BUFFERS + ILO_MAX_CONST_BUFFERS + i)
+#define ILO_MAX_SURFACES 256
/**
* States that we track.