i915g: fix i915_winsys_batchbuffer_write
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -71,7 +71,7 @@ i915_winsys_batchbuffer_write(struct i915_winsys_batchbuffer *batch,
|
||||
{
|
||||
assert (i915_winsys_batchbuffer_space(batch) >= size);
|
||||
|
||||
memcpy(data, batch->ptr, size);
|
||||
memcpy(batch->ptr, data, size);
|
||||
batch->ptr += size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user