From: Corbin Simpson Date: Fri, 18 Dec 2009 22:05:40 +0000 (-0800) Subject: r300g: Eliminate a couple more asserts. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf611cef29d664c2c2b56d2175c3a966c720e8b8;p=mesa.git r300g: Eliminate a couple more asserts. --- diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 425eb9f9ef3..a0d67e76181 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -180,7 +180,6 @@ boolean r300_draw_range_elements(struct pipe_context* pipe, return FALSE; } - if (count > 65535) { return FALSE; } @@ -197,11 +196,11 @@ boolean r300_draw_range_elements(struct pipe_context* pipe, if (!r300->winsys->add_buffer(r300->winsys, indexBuffer, RADEON_GEM_DOMAIN_GTT, 0)) { - assert(0); + return FALSE; } if (!r300->winsys->validate(r300->winsys)) { - assert(0); + return FALSE; } r300_emit_dirty_state(r300);