From 43e6c51aed90f56e799f5cabb0b65fc352199750 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 14 Oct 2012 18:58:04 +0200 Subject: [PATCH] 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. --- src/gallium/drivers/nouveau/nouveau_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2