Mesa (master): radeon: Don' t even bother with things too big to fit into our card.

Corbin Simpson csimpson at kemper.freedesktop.org
Fri May 1 14:30:41 UTC 2009


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

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Fri May  1 07:29:14 2009 -0700

radeon: Don't even bother with things too big to fit into our card.

---

 src/gallium/winsys/drm/radeon/core/radeon_r300.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/drm/radeon/core/radeon_r300.c b/src/gallium/winsys/drm/radeon/core/radeon_r300.c
index ac6cca3..da23320 100644
--- a/src/gallium/winsys/drm/radeon/core/radeon_r300.c
+++ b/src/gallium/winsys/drm/radeon/core/radeon_r300.c
@@ -60,7 +60,9 @@ static boolean radeon_r300_validate(struct r300_winsys* winsys)
     retval = radeon_cs_space_check(priv->cs, sc, priv->bo_count);
 
     if (retval == RADEON_CS_SPACE_OP_TO_BIG) {
-        /* XXX we need to failover here */
+        /* We might as well HCF, since this is not going to fit in the card,
+         * period. */
+	exit(1);
     } else if (retval == RADEON_CS_SPACE_FLUSH) {
         /* We must flush before more rendering can commence. */
         return TRUE;




More information about the mesa-commit mailing list