瀏覽代碼

i915g: Check relocs as well

tags/mesa_7_6_rc1
Jakob Bornecrantz 16 年之前
父節點
當前提交
df9f27822e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/gallium/drivers/i915simple/i915_batch.h

+ 2
- 2
src/gallium/drivers/i915simple/i915_batch.h 查看文件

@@ -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

Loading…
取消
儲存