summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_batchbuffer.h
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2011-02-26 21:40:52 +0100
committerDaniel Vetter <[email protected]>2011-03-01 22:18:11 +0100
commit8f9e546fde27db75ea87bcf8ae333bc70616deb4 (patch)
tree09e4869c68c3e24d11437a419aa8775b9cccf243 /src/gallium/drivers/i915/i915_batchbuffer.h
parentee7acf6493e934dbc78d98738195a3804c23722e (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.h6
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