summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_context.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2012-12-13 04:26:23 +0800
committerChia-I Wu <[email protected]>2013-04-26 16:16:42 +0800
commitbabb2b5c50a5ea6b9410b1175fd36257190b269d (patch)
tree3a668f87ffb9b4c74a1b526c35217e10cab0f987 /src/gallium/drivers/ilo/ilo_context.h
parente74d67738d2e10a5119298bb10c413cbe66b3255 (diff)
ilo: hook up pipe_screen param and fence functions
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_context.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.h b/src/gallium/drivers/ilo/ilo_context.h
index e53fb589423..da340ce5b4b 100644
--- a/src/gallium/drivers/ilo/ilo_context.h
+++ b/src/gallium/drivers/ilo/ilo_context.h
@@ -32,6 +32,28 @@
#include "ilo_common.h"
+/**
+ * \see brw_context.h
+ */
+#define ILO_MAX_DRAW_BUFFERS 8
+#define ILO_MAX_CONST_BUFFERS 1
+#define ILO_MAX_SAMPLER_VIEWS 16
+#define ILO_MAX_SAMPLERS 16
+#define ILO_MAX_SO_BINDINGS 64
+#define ILO_MAX_SO_BUFFERS 4
+
+#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)
+
struct intel_winsys;
struct ilo_screen;