Mesa (master): r300g: Eliminate a couple more asserts.

Corbin Simpson csimpson at kemper.freedesktop.org
Fri Dec 18 22:08:34 UTC 2009


Module: Mesa
Branch: master
Commit: bf611cef29d664c2c2b56d2175c3a966c720e8b8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf611cef29d664c2c2b56d2175c3a966c720e8b8

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Fri Dec 18 14:05:40 2009 -0800

r300g: Eliminate a couple more asserts.

---

 src/gallium/drivers/r300/r300_render.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 425eb9f..a0d67e7 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);




More information about the mesa-commit mailing list