summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2013-08-09 19:51:02 +0100
committerChristoph Bumiller <[email protected]>2013-09-01 20:38:07 +0200
commitdc10251d086576a007c77b7ca7854f5fe8c7e134 (patch)
treead7655ca76768bc8efffcd0bb92f900919281be4 /src/gallium/drivers
parentf35dea05b1329b9303a11fb803897fb189ff99b4 (diff)
nouveau: initialise the nouveau_transfer maps
Cc: "9.2 and 9.1" <[email protected]> Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c
index 02bc6f04146..3e0404983fe 100644
--- a/src/gallium/drivers/nouveau/nouveau_buffer.c
+++ b/src/gallium/drivers/nouveau/nouveau_buffer.c
@@ -289,6 +289,7 @@ nouveau_buffer_cache(struct nouveau_context *nv, struct nv04_resource *buf)
tx.base.box.x = 0;
tx.base.box.width = buf->base.width0;
tx.bo = NULL;
+ tx.map = NULL;
if (!buf->data)
if (!nouveau_buffer_malloc(buf))
@@ -690,6 +691,7 @@ nouveau_buffer_migrate(struct nouveau_context *nv,
tx.base.box.x = 0;
tx.base.box.width = buf->base.width0;
tx.bo = NULL;
+ tx.map = NULL;
if (!nouveau_transfer_staging(nv, &tx, FALSE))
return FALSE;
nouveau_transfer_write(nv, &tx, 0, tx.base.box.width);