i915g: Check relocs as well

This commit is contained in:
Jakob Bornecrantz
2009-08-08 17:19:43 +02:00
parent 7a60ed2015
commit df9f27822e
+2 -2
View File
@@ -50,8 +50,8 @@ i915_batchbuffer_check( struct i915_batchbuffer *batch,
size_t dwords,
size_t relocs )
{
/** TODO JB: Check relocs */
return dwords * 4 <= batch->size - (batch->ptr - batch->map);
return dwords * 4 <= batch->size - (batch->ptr - batch->map) &&
relocs <= (batch->max_relocs - batch->relocs);
}
static INLINE size_t