summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@freedesktop.org>2006-09-08 21:52:25 +0000
committerPatrice Mandin <pmandin@freedesktop.org>2006-09-08 21:52:25 +0000
commitcdd433b29be9ad39b0c2e69d76d2de51f29eba2b (patch)
tree338854ed722b9d63fcec9aec6406fb01b521d07f /src/mesa/drivers
parent1961611247313603f72315285be91c6b97df7e03 (diff)
more macros, still missing the alloc_verts one
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv10_swtcl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_swtcl.c b/src/mesa/drivers/dri/nouveau/nv10_swtcl.c
index 2ed151f0fc..35135fc706 100644
--- a/src/mesa/drivers/dri/nouveau/nv10_swtcl.c
+++ b/src/mesa/drivers/dri/nouveau/nv10_swtcl.c
@@ -167,6 +167,11 @@ static inline void nv10_draw_point(nouveauContextPtr nmesa,
#define CTX_ARG nouveauContextPtr nmesa
+#define GET_VERTEX_DWORDS() nmesa->vertex_size
+#define LOCAL_VARS \
+ nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx); \
+ const char *nouveauverts = (char *)nmesa->verts;
+#define VERT(x) (r200Vertex *)(r200verts + ((x) * vertsize * sizeof(int)))
#define VERTEX nouveauVertex
#undef TAG
@@ -269,6 +274,7 @@ static struct {
#define VERT_RESTORE_SPEC( idx ) if (specoffset) v[idx]->f[specoffset] = spec[idx]
+#undef LOCAL_VARS
#define LOCAL_VARS(n) \
struct nouveau_context *nmesa = NOUVEAU_CONTEXT(ctx); \
GLuint color[n], spec[n]; \