r300: Corrected the exit codes for consistency; they are all -1 for error now.
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 03:36:28 +0000 (03:36 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 03:36:28 +0000 (03:36 +0000)
The one exception is 300FlushCmdBuf.

src/mesa/drivers/dri/r300/r300_cmdbuf.c
src/mesa/drivers/dri/r300/r300_maos.c
src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/r300_texmem.c
src/mesa/drivers/dri/r300/r300_vertprog.c

index 9bfdc85c4abdb7d236d0d89116db2a9702d042ae..294fcd759480403a285808593924121aa385ee8d 100644 (file)
@@ -121,7 +121,7 @@ int r300FlushCmdBuf(r300ContextPtr r300, const char *caller)
        UNLOCK_HARDWARE(&r300->radeon);
 
        if (ret) {
-               fprintf(stderr, "drmRadeonCmdBuffer: %d (exiting)\n", ret);
+               fprintf(stderr, "drmRadeonCmdBuffer: %d\n", ret);
                _mesa_exit(ret);
        }
 
index 94b1f65f263d6bbe3f773c29dee0b4d7a1054c9a..d3105e0d160279b254f79dc8823d775bbee9ae30 100644 (file)
@@ -217,7 +217,7 @@ static void emit_vector(GLcontext * ctx,
                break;
        default:
                assert(0);
-               _mesa_exit(1);
+               _mesa_exit(-1);
                break;
        }
 
@@ -243,7 +243,7 @@ void r300EmitElts(GLcontext * ctx, void *elts, unsigned long n_elts,
                return;
        } else if (r300IsGartMemory(rmesa, elts, 1)) {
                WARN_ONCE("Pointer not within GART memory!\n");
-               _mesa_exit(1);
+               _mesa_exit(-1);
        }
 
        r300AllocDmaRegion(rmesa, rvb, n_elts * elt_size, elt_size);
index fbdb4ca98f4ed3ddd6747fa04032de2d35113238..18c15ae83de7b450e334aef06a022e6a2554d7eb 100644 (file)
@@ -1514,7 +1514,7 @@ void r300_setup_rs_unit(GLcontext * ctx)
 
                if (i == ctx->Const.MaxTextureUnits) {
                        fprintf(stderr, "\tno free texcoord found...\n");
-                       _mesa_exit(0);
+                       _mesa_exit(-1);
                }
 
                InputsRead |= (FRAG_BIT_TEX0 << i);
index 4750c468db47e82d4b70da4eafbeaac432aa505b..5d52f777e3bdfaa1245797f1e84975fd055dad12 100644 (file)
@@ -485,7 +485,7 @@ static void uploadSubImage( r300ContextPtr rmesa, r300TexObjPtr t,
                fprintf( stderr, "    blit width=%d height=%d data=%p\n",
                                t->image[face][hwlevel].width, t->image[face][hwlevel].height,
                                t->image[face][hwlevel].data );
-               _mesa_exit( 1 );
+               _mesa_exit(-1);
        }
 }
 
index c7bfd8e8a813c3c3addb257e88eb3422dbad7c56..245ceb4d122510fa1dad43b6acd178f011c61a81 100644 (file)
@@ -173,7 +173,7 @@ static unsigned long t_dst_class(enum register_file file)
                */
                default:
                        fprintf(stderr, "problem in %s", __FUNCTION__);
-                       _mesa_exit(0);
+                       _mesa_exit(-1);
        }
 }
 
@@ -207,7 +207,7 @@ static unsigned long t_src_class(enum register_file file)
                */
                default:
                        fprintf(stderr, "problem in %s", __FUNCTION__);
-                       _mesa_exit(0);
+                       _mesa_exit(-1);
        }
 }
 
@@ -1080,7 +1080,7 @@ void r300_select_vertex_shader(r300ContextPtr r300)
 
                if(i == ctx->Const.MaxTextureUnits){
                        fprintf(stderr, "\tno free texcoord found\n");
-                       _mesa_exit(0);
+                       _mesa_exit(-1);
                }
 
                InputsRead |= (FRAG_BIT_TEX0 << i);