Note that the exit codes are inconsistent and should be fixed.
if (ret) {
fprintf(stderr, "drmRadeonCmdBuffer: %d (exiting)\n", ret);
- exit(ret);
+ _mesa_exit(ret);
}
return ret;
"cmd_written=%d cmd_reserved=%d\n", \
__FILE__, __FUNCTION__, __LINE__, \
cmd_written, cmd_reserved); \
- exit(-1); \
+ _mesa_exit(-1); \
} \
} while(0)
fprintf(stderr,"Too big packet3 %08x: cannot " \
"store %d dwords\n", \
_p, _n); \
- exit(-1); \
+ _mesa_exit(-1); \
} \
cmd[0].i = cmdpacket3(R300_CMD_PACKET3_RAW); \
cmd[1].i = _p | ((_n & 0x3fff)<<16); \
if (dmabuf->id == 0) {
fprintf(stderr,
"Error: Could not get dma buffer... exiting\n");
- exit(-1);
+ _mesa_exit(-1);
}
}
UNLOCK_HARDWARE(&rmesa->radeon);
fprintf(stderr,
"Error: Could not get dma buffer... exiting\n");
- exit(-1);
+ _mesa_exit(-1);
}
}
break;
default:
assert(0);
- exit(1);
+ _mesa_exit(1);
break;
}
return;
} else if (r300IsGartMemory(rmesa, elts, 1)) {
WARN_ONCE("Pointer not within GART memory!\n");
- exit(1);
+ _mesa_exit(1);
}
r300AllocDmaRegion(rmesa, rvb, n_elts * elt_size, elt_size);
fprintf(stderr,
"Aiiee ! mtu=%d is greater than R300_MAX_TEXTURE_UNITS=%d\n",
mtu, R300_MAX_TEXTURE_UNITS);
- exit(-1);
+ _mesa_exit(-1);
}
/* We cannot let disabled tmu offsets pass DRM */
if (i == ctx->Const.MaxTextureUnits) {
fprintf(stderr, "\tno free texcoord found...\n");
- exit(0);
+ _mesa_exit(0);
}
InputsRead |= (FRAG_BIT_TEX0 << i);
("fragprog wants coords for tex%d, vp doesn't provide them!\n",
i);
//_mesa_print_program(&CURRENT_VERTEX_SHADER(ctx)->Base);
- //exit(-1);
+ //_mesa_exit(-1);
}
InputsRead &= ~(FRAG_BIT_TEX0 << i);
fp_reg++;
("fragprog wants col0, vp doesn't provide it\n");
goto out; /* FIXME */
//_mesa_print_program(&CURRENT_VERTEX_SHADER(ctx)->Base);
- //exit(-1);
+ //_mesa_exit(-1);
}
r300->hw.rr.cmd[R300_RR_ROUTE_0] |= 0
_TNL_ATTRIB_COLOR1)) {
WARN_ONCE
("fragprog wants col1, vp doesn't provide it\n");
- //exit(-1);
+ //_mesa_exit(-1);
}
r300->hw.rr.cmd[R300_RR_ROUTE_1] |=
if (vsf->length & 0x3) {
fprintf(stderr,
"VERTEX_SHADER_FRAGMENT must have length divisible by 4\n");
- exit(-1);
+ _mesa_exit(-1);
}
switch ((dest >> 8) & 0xf) {
fprintf(stderr,
"%s:%s don't know how to handle dest %04x\n",
__FILE__, __FUNCTION__, dest);
- exit(-1);
+ _mesa_exit(-1);
}
}
default:
fprintf(stderr, "Error: Unsupported depth %d... exiting\n",
ctx->Visual.depthBits);
- exit(-1);
+ _mesa_exit(-1);
}
/* z compress? */
default:
fprintf(stderr, "Error: Unsupported depth %d... exiting\n",
ctx->Visual.depthBits);
- exit(-1);
+ _mesa_exit(-1);
}
/* Only have hw stencil when depth buffer is 24 bits deep */
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 );
- exit( 1 );
+ _mesa_exit( 1 );
}
}
if(mesa_vp->Base.Parameters->NumParameters * 4 > VSF_MAX_FRAGMENT_LENGTH){
fprintf(stderr, "%s:Params exhausted\n", __FUNCTION__);
- exit(-1);
+ _mesa_exit(-1);
}
paramList = mesa_vp->Base.Parameters;
*/
default:
fprintf(stderr, "problem in %s", __FUNCTION__);
- exit(0);
+ _mesa_exit(0);
}
}
*/
default:
fprintf(stderr, "problem in %s", __FUNCTION__);
- exit(0);
+ _mesa_exit(0);
}
}
default:
fprintf(stderr, "%s: Should not be called with opcode %d!", __FUNCTION__, opcode);
}
- exit(-1);
+ _mesa_exit(-1);
return 0;
}
return op_names[i].ip;
fprintf(stderr, "op %d not found in op_names\n", opcode);
- exit(-1);
+ _mesa_exit(-1);
return 0;
}
case OPCODE_RCC:
fprintf(stderr, "Dont know how to handle op %d yet\n", vpi->Opcode);
- exit(-1);
+ _mesa_exit(-1);
break;
case OPCODE_END:
break;
default:
fprintf(stderr, "scalars and op RCC not handled yet");
- exit(-1);
+ _mesa_exit(-1);
break;
}
}else{
default:
fprintf(stderr, "scalars and op RCC not handled yet");
- exit(-1);
+ _mesa_exit(-1);
break;
}
}
if(i == ctx->Const.MaxTextureUnits){
fprintf(stderr, "\tno free texcoord found\n");
- exit(0);
+ _mesa_exit(0);
}
InputsRead |= (FRAG_BIT_TEX0 << i);