summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_private.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-20 17:02:07 -0600
committerBrian <[email protected]>2007-08-20 17:02:07 -0600
commit766fa51537dabd978eb04fb4c3f29b5dfeacd9fb (patch)
treebcbfb6090a535adb11154b1e928941a274a4d246 /src/mesa/pipe/draw/draw_private.h
parentddf8ba2d1b4f85498613f7ace1ffda70bb9d9e92 (diff)
remove some of the #ifndef MESA stuff
Diffstat (limited to 'src/mesa/pipe/draw/draw_private.h')
-rw-r--r--src/mesa/pipe/draw/draw_private.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/pipe/draw/draw_private.h b/src/mesa/pipe/draw/draw_private.h
index 5983bc1174b..1912607b66e 100644
--- a/src/mesa/pipe/draw/draw_private.h
+++ b/src/mesa/pipe/draw/draw_private.h
@@ -43,13 +43,14 @@
#include "pipe/p_state.h"
#include "pipe/p_defines.h"
-#ifdef MESA
-#include "vf/vf.h"
-#else
+
+
/* XXX these are temporary */
struct vf_attr_map {
unsigned attrib;
+ /*
unsigned format;
+ */
unsigned offset;
};
#define VF_ATTRIB_POS 0
@@ -65,7 +66,6 @@ struct vf_attr_map {
#define EMIT_4F 3
#define EMIT_4F_VIEWPORT 6
#define FRAG_ATTRIB_MAX 13
-#endif
/**
@@ -162,6 +162,10 @@ struct draw_context
struct pipe_vertex_element vertex_element[PIPE_ATTRIB_MAX];
struct pipe_shader_state vertex_shader;
+ /** The mapped vertex element/index buffer */
+ const void *mapped_elts;
+ unsigned eltSize; /**< bytes per index (0, 1, 2 or 4) */
+ /** The mapped vertex arrays */
const void *mapped_vbuffer[PIPE_ATTRIB_MAX];
/* Clip derived state:
@@ -179,10 +183,6 @@ struct draw_context
unsigned vertex_size; /**< in bytes */
unsigned nr_vertices;
- /** Pointer to vertex element/index buffer */
- unsigned eltSize; /**< bytes per index (0, 1, 2 or 4) */
- void *elts;
-
unsigned prim; /**< current prim type: PIPE_PRIM_x */
unsigned reduced_prim;