gallium: change 65535 to UNDEFINED_VERTEX_ID

This commit is contained in:
Alan Hourihane 2008-12-10 20:21:19 +00:00
parent a8e7852b05
commit b716de4779
4 changed files with 9 additions and 9 deletions

View 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,

View 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;
}

View 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,

View 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,