radeon: Don't even bother with things too big to fit into our card.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 1 May 2009 14:29:14 +0000 (07:29 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 1 May 2009 14:29:14 +0000 (07:29 -0700)
src/gallium/winsys/drm/radeon/core/radeon_r300.c

index ac6cca36bfe79c2639db322a41ad160a764b9b66..da233203d7d8526183fd549f5741e389767dc99c 100644 (file)
@@ -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;