From: Christoph Bumiller Date: Sun, 14 Oct 2012 16:58:04 +0000 (+0200) Subject: nouveau: fix offset in nouveau_buffer_transfer_map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43e6c51aed90f56e799f5cabb0b65fc352199750;p=mesa.git 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. --- 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)