summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-04-12 01:47:28 +0200
committerJakob Bornecrantz <[email protected]>2010-04-12 01:50:51 +0200
commitc81f049794625c6907c884fdb03de8dd1555b11e (patch)
treea188c132e12b0faa06c8b4db63629f4f983ac2d0 /src/gallium
parentb132265f50bc405d1ca31bcf2bcf3190b7d4f0f1 (diff)
llvmpipe: Fix transfers after resource change
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_texture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index 972c7ae7c30..61210de8901 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -357,6 +357,7 @@ llvmpipe_get_transfer(struct pipe_context *pipe,
struct pipe_transfer *pt = &lpt->base;
pipe_resource_reference(&pt->resource, resource);
pt->box = *box;
+ pt->sr = sr;
pt->stride = lptex->stride[sr.level];
pt->usage = usage;