Get aubfile generation working again.
/* Attempt to prevent monster aubfiles by closing and reopening when
* the state pools wrap.
*/
-void brw_aub_wrap( struct intel_context *intel )
+static void brw_aub_wrap( struct intel_context *intel )
{
struct brw_context *brw = brw_context(&intel->ctx);
if (intel->aub_file) {
int brw_aub_init( struct brw_context *brw );
void brw_aub_destroy( struct brw_context *brw );
-void brw_aub_wrap( struct intel_context *intel );
#endif
driInitExtensions( ctx, brw_extensions, GL_FALSE );
brw_aub_init( brw );
- brw->intel.vtbl.aub_wrap = brw_aub_wrap;
-
brw_init_attribs( brw );
brw_init_metaops( brw );
unsigned flags)
{
struct bufmgr *bm = intel->bm;
- int retval;
+ int retval = 0;
LOCK(bm);
{
const void *data )
{
struct bufmgr *bm = intel->bm;
- int retval;
+ int retval = 0;
if (size == 0)
return 0;
struct buffer *buf)
{
struct bufmgr *bm = intel->bm;
- unsigned retval;
+ unsigned retval = 0;
LOCK(bm);
{
unsigned flags )
{
struct bufmgr *bm = intel->bm;
- void *retval;
+ void *retval = NULL;
LOCK(bm);
{
int bmValidateBuffers( struct intel_context *intel )
{
struct bufmgr *bm = intel->bm;
- int retval;
+ int retval = 0;
LOCK(bm);
{
bm->need_fence = 1;
}
- retval = !bm->fail;
+ retval = bm->fail ? -1 : 0;
}
UNLOCK(bm);
- if (!retval)
+ if (retval != 0)
_mesa_printf("%s failed\n", __FUNCTION__);
return retval;
*/
offset = bmBufferOffset(batch->intel, batch->buffer);
- if (!bmValidateBuffers( batch->intel )) {
+ if (bmValidateBuffers( batch->intel ) != 0) {
assert(intel->locked);
bmReleaseBuffers( batch->intel );
retval = GL_FALSE;