diff options
author | Christoph Bumiller <[email protected]> | 2012-10-14 18:58:04 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-10-14 18:58:04 +0200 |
commit | 43e6c51aed90f56e799f5cabb0b65fc352199750 (patch) | |
tree | 2bd392e387d89ecaed687fd5566075e492e47eea | |
parent | fb85b204d3dd2016ca828bba602262f182f8b4b4 (diff) |
nouveau: fix offset in nouveau_buffer_transfer_map
Before 369e46888904c6d379b8b477d9242cff1608e30e, the transfer was
initialized before the call to map and had the correct value already.
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c index f16345d540e..fb929d68231 100644 --- a/src/gallium/drivers/nouveau/nouveau_buffer.c +++ b/src/gallium/drivers/nouveau/nouveau_buffer.c @@ -210,7 +210,7 @@ nouveau_buffer_transfer_map(struct pipe_context *pipe, struct nouveau_bo *bo = buf->bo; uint8_t *map; int ret; - uint32_t offset = xfr->base.box.x; + uint32_t offset = box->x; uint32_t flags = 0; if (!xfr) |