diff options
author | Daniel Vetter <[email protected]> | 2011-02-26 21:40:52 +0100 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2011-03-01 22:18:11 +0100 |
commit | 8f9e546fde27db75ea87bcf8ae333bc70616deb4 (patch) | |
tree | 09e4869c68c3e24d11437a419aa8775b9cccf243 /src/gallium/drivers/i915/i915_batchbuffer.h | |
parent | ee7acf6493e934dbc78d98738195a3804c23722e (diff) |
i915g: kill relocs accouting
No one ever cared. libdrm does dynamic resizing of its reloc-table,
anyway.
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_batchbuffer.h')
-rw-r--r-- | src/gallium/drivers/i915/i915_batchbuffer.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/i915/i915_batchbuffer.h b/src/gallium/drivers/i915/i915_batchbuffer.h index ada713b0cb9..9df82272604 100644 --- a/src/gallium/drivers/i915/i915_batchbuffer.h +++ b/src/gallium/drivers/i915/i915_batchbuffer.h @@ -41,11 +41,9 @@ i915_winsys_batchbuffer_space(struct i915_winsys_batchbuffer *batch) static INLINE boolean i915_winsys_batchbuffer_check(struct i915_winsys_batchbuffer *batch, - size_t dwords, - size_t relocs) + size_t dwords) { - return dwords * 4 <= i915_winsys_batchbuffer_space(batch) && - relocs <= (batch->max_relocs - batch->relocs); + return dwords * 4 <= i915_winsys_batchbuffer_space(batch); } static INLINE void |