Mesa (master): nouveau: fix offset in nouveau_buffer_transfer_map
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Sun Oct 14 17:01:26 UTC 2012
Module: Mesa
Branch: master
Commit: 43e6c51aed90f56e799f5cabb0b65fc352199750
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=43e6c51aed90f56e799f5cabb0b65fc352199750
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Sun Oct 14 18:58:04 2012 +0200
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 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 f16345d..fb929d6 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)
More information about the mesa-commit
mailing list