diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-08-07 21:08:23 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-08-25 16:23:01 +0800 |
commit | d29d7807c1e2c53336b1adaf0ecdeb3e35b39969 (patch) | |
tree | 2124a8a19dd7f77e5aeb2fe62b6c010419cbfb37 /src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c | |
parent | 22f6026324f63c142925244ff575fefc29a90389 (diff) | |
download | external_mesa3d-d29d7807c1e2c53336b1adaf0ecdeb3e35b39969.zip external_mesa3d-d29d7807c1e2c53336b1adaf0ecdeb3e35b39969.tar.gz external_mesa3d-d29d7807c1e2c53336b1adaf0ecdeb3e35b39969.tar.bz2 |
draw: Remove UNDEFINED_VERTEX_ID checks in emit pathes.
UNDEFINED_VERTEX_ID is used by draw_pipe_vbuf to decide whether a vertex
has been emitted or not. The non-pipeline pathes do not use it (they
tell the frontend the max vertex count when prepare() is called).
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c index a31d3fe..4fbf888 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c @@ -199,9 +199,6 @@ static void fse_run_linear( struct draw_pt_middle_end *middle, */ draw_do_flush( draw, DRAW_FLUSH_BACKEND ); - if (count >= UNDEFINED_VERTEX_ID) - goto fail; - if (!draw->render->allocate_vertices( draw->render, (ushort)fse->key.output_stride, (ushort)count )) @@ -268,9 +265,6 @@ fse_run(struct draw_pt_middle_end *middle, */ draw_do_flush( draw, DRAW_FLUSH_BACKEND ); - if (fetch_count >= UNDEFINED_VERTEX_ID) - goto fail; - if (!draw->render->allocate_vertices( draw->render, (ushort)fse->key.output_stride, (ushort)fetch_count )) @@ -331,9 +325,6 @@ static boolean fse_run_linear_elts( struct draw_pt_middle_end *middle, */ draw_do_flush( draw, DRAW_FLUSH_BACKEND ); - if (count >= UNDEFINED_VERTEX_ID) - return FALSE; - if (!draw->render->allocate_vertices( draw->render, (ushort)fse->key.output_stride, (ushort)count )) |