gallium: change 65535 to UNDEFINED_VERTEX_ID
authorAlan Hourihane <alanh@tungstengraphics.com>
Wed, 10 Dec 2008 20:21:19 +0000 (20:21 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Wed, 10 Dec 2008 20:21:19 +0000 (20:21 +0000)
src/gallium/auxiliary/draw/draw_pipe_vbuf.c
src/gallium/auxiliary/draw/draw_pt_emit.c
src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c

index fb0d895084197e1d8c1afdb5d423a09c401e349c..5ead25efff0e5d3a4d624353931e77b5b104ae0f 100644 (file)
@@ -399,7 +399,7 @@ vbuf_alloc_vertices( struct vbuf_stage *vbuf )
     * and it will flush itself if necessary to do so.  If this does
     * fail, we are basically without usable hardware.
     */
-   assert(vbuf->max_vertices < 65536);
+   assert(vbuf->max_vertices < UNDEFINED_VERTEX_ID);
 
    vbuf->vertices = (uint *) vbuf->render->allocate_vertices(vbuf->render,
                                                             (ushort) vbuf->vertex_size,
index c4fc93ffbaef6f9863755ff97a1ccdfc729e213c..232dfdaed2d71e23a65dd1b6d94599148f5e08e3 100644 (file)
@@ -165,7 +165,7 @@ void draw_pt_emit( struct pt_emit *emit,
     */
    draw_do_flush( draw, DRAW_FLUSH_BACKEND );
 
-   if (vertex_count > 65535) { /* FIXME */
+   if (vertex_count >= UNDEFINED_VERTEX_ID) {
       assert(0);
       return;
    }
@@ -231,7 +231,7 @@ void draw_pt_emit_linear(struct pt_emit *emit,
     */
    draw_do_flush( draw, DRAW_FLUSH_BACKEND );
 
-   if (count > 65535) { /* FIXME */
+   if (count >= UNDEFINED_VERTEX_ID) {
       assert(0);
       return;
    }
index 5727b91c48c1868d991409afea9d7e6585c0d008..39159b747da95b3cbb80e8f5bdaced4340131119 100644 (file)
@@ -229,7 +229,7 @@ static void fetch_emit_run( struct draw_pt_middle_end *middle,
     */
    draw_do_flush( draw, DRAW_FLUSH_BACKEND );
 
-   if (fetch_count > 65535) { /* FIXME */
+   if (fetch_count >= UNDEFINED_VERTEX_ID) {
       assert(0);
       return;
    }
@@ -288,7 +288,7 @@ static void fetch_emit_run_linear( struct draw_pt_middle_end *middle,
     */
    draw_do_flush( draw, DRAW_FLUSH_BACKEND );
 
-   if (count > 65535) { /* FIXME */
+   if (count >= UNDEFINED_VERTEX_ID)
       assert(0);
       return;
    }
@@ -348,7 +348,7 @@ static boolean fetch_emit_run_linear_elts( struct draw_pt_middle_end *middle,
     */
    draw_do_flush( draw, DRAW_FLUSH_BACKEND );
 
-   if (count > 65535) /* FIXME */
+   if (count >= UNDEFINED_VERTEX_ID)
       return FALSE;
 
    hw_verts = draw->render->allocate_vertices( draw->render,
index 69580f14723da7343655265abccec9d1266cfce4..1649cdc6cd1a8cf1bf0c1f0bc82ce91a25f0aaa3 100644 (file)
@@ -234,7 +234,7 @@ static void fse_run_linear( struct draw_pt_middle_end *middle,
     */
    draw_do_flush( draw, DRAW_FLUSH_BACKEND );
 
-   if (count > 65535) { /* FIXME */
+   if (count >= UNDEFINED_VERTEX_ID) {
       assert(0);
       return;
    }
@@ -298,7 +298,7 @@ fse_run(struct draw_pt_middle_end *middle,
     */
    draw_do_flush( draw, DRAW_FLUSH_BACKEND );
 
-   if (fetch_count > 65535) { /* FIXME */
+   if (fetch_count >= UNDEFINED_VERTEX_ID) {
       assert(0);
       return;
    }
@@ -357,7 +357,7 @@ static boolean fse_run_linear_elts( struct draw_pt_middle_end *middle,
     */
    draw_do_flush( draw, DRAW_FLUSH_BACKEND );
 
-   if (count > 65535) /* FIXME */
+   if (count >= UNDEFINED_VERTEX_ID)
       return FALSE;
 
    hw_verts = draw->render->allocate_vertices( draw->render,