summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_private.h
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2007-11-07 12:08:19 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2007-11-07 13:41:00 +0000
commitc28fdf309607ec2994ef9a1109931a8389854300 (patch)
treef63cd5c6915779f8bca6b1aa30b01123be5b5822 /src/mesa/pipe/draw/draw_private.h
parent3922baede207c64ce07ec2ac19ffab04f7035483 (diff)
Use a consistent number to identify undefined vertices.
Diffstat (limited to 'src/mesa/pipe/draw/draw_private.h')
-rw-r--r--src/mesa/pipe/draw/draw_private.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_private.h b/src/mesa/pipe/draw/draw_private.h
index f52ff0bd44..bdc3a6b9e7 100644
--- a/src/mesa/pipe/draw/draw_private.h
+++ b/src/mesa/pipe/draw/draw_private.h
@@ -52,6 +52,7 @@
struct gallivm_prog;
struct gallivm_cpu_engine;
+
/**
* Basic vertex info.
* Carry some useful information around with the vertices in the prim pipe.
@@ -67,6 +68,9 @@ struct vertex_header {
float data[][4]; /* Note variable size */
};
+/* NOTE: It should match vertex_id size above */
+#define UNDEFINED_VERTEX_ID 0xffff
+
/* XXX This is too large */
#define MAX_VERTEX_SIZE ((2 + PIPE_MAX_SHADER_OUTPUTS) * 4 * sizeof(float))
@@ -299,7 +303,7 @@ dup_vert( struct draw_stage *stage,
{
struct vertex_header *tmp = stage->tmp[idx];
memcpy(tmp, vert, stage->draw->vertex_info.size * sizeof(float) );
- tmp->vertex_id = ~0;
+ tmp->vertex_id = UNDEFINED_VERTEX_ID;
return tmp;
}