summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/i965/brw_batchbuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i965/brw_batchbuffer.h b/src/gallium/drivers/i965/brw_batchbuffer.h
index 781cd698e4..1f04826aea 100644
--- a/src/gallium/drivers/i965/brw_batchbuffer.h
+++ b/src/gallium/drivers/i965/brw_batchbuffer.h
@@ -103,19 +103,19 @@ brw_batchbuffer_emit_dword(struct brw_batchbuffer *batch, GLuint dword)
batch->ptr += 4;
}
-static INLINE boolean
+static INLINE enum pipe_error
brw_batchbuffer_require_space(struct brw_batchbuffer *batch,
GLuint sz)
{
assert(sz < batch->size - 8);
if (brw_batchbuffer_space(batch) < sz) {
assert(0);
- return FALSE;
+ return PIPE_ERROR_OUT_OF_MEMORY;
}
#ifdef DEBUG
batch->emit.end_ptr = batch->ptr + sz;
#endif
- return TRUE;
+ return 0;
}
/* Here are the crusty old macros, to be removed: