diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-11-05 08:01:48 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-11-05 08:01:48 +0000 |
commit | b2bf5f98d923b8d52473e069576fc6514c0ffd0a (patch) | |
tree | e9f5d8ea39d797fbe1ed1bcfcf6ed31ffb91085b /src | |
parent | 2475e5db679a70c4a3868dc07037d009865a6694 (diff) | |
download | external_mesa3d-b2bf5f98d923b8d52473e069576fc6514c0ffd0a.zip external_mesa3d-b2bf5f98d923b8d52473e069576fc6514c0ffd0a.tar.gz external_mesa3d-b2bf5f98d923b8d52473e069576fc6514c0ffd0a.tar.bz2 |
i965g: use pipe_error return value for brw_batchbuffer_require_space
trivial/tri runs without crashing (on debug winsys) but still produces
obviously incorrect command buffers.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/i965/brw_batchbuffer.h | 6 |
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 781cd69..1f04826 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: |