summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index d1e387ce437..f3723eb87e5 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -41,6 +41,16 @@
#include "mtypes.h"
+
+/**
+ * Implementation limits
+ */
+#define PIPE_MAX_SAMPLERS 8
+#define PIPE_MAX_CLIP_PLANES 6
+#define PIPE_MAX_CONSTANT 32
+
+
+
/**
* Primitive (point/line/tri) setup info
*/
@@ -84,9 +94,6 @@ struct pipe_scissor_rect {
GLshort maxy;
};
-
-#define PIPE_MAX_CLIP_PLANES 6
-
struct pipe_clip_state {
GLfloat ucp[PIPE_MAX_CLIP_PLANES][4];
GLuint nr;
@@ -96,8 +103,6 @@ struct pipe_fs_state {
struct gl_fragment_program *fp;
};
-#define PIPE_MAX_CONSTANT 32
-
struct pipe_constant_buffer {
GLfloat constant[PIPE_MAX_CONSTANT][4];
GLuint nr_constants;