diff options
author | Christoph Bumiller <[email protected]> | 2011-02-02 21:38:07 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-02-09 16:04:59 +0100 |
commit | c62fc50c884e2755c0731c395f200d23b975fbde (patch) | |
tree | ac5c8f7ed95e7abfd4dd8a97787fb0a57ce1d948 /src/gallium/drivers/nvc0/nvc0_transfer.c | |
parent | d3ea15f5ca570b9d885781cd72232026e50046d0 (diff) |
nvc0: reset texture base address after read transfer
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_transfer.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_transfer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_transfer.c b/src/gallium/drivers/nvc0/nvc0_transfer.c index 92e006cba49..b279bdc6e7d 100644 --- a/src/gallium/drivers/nvc0/nvc0_transfer.c +++ b/src/gallium/drivers/nvc0/nvc0_transfer.c @@ -318,6 +318,7 @@ nvc0_miptree_transfer_new(struct pipe_context *pctx, tx->rect[1].domain = NOUVEAU_BO_GART; if (usage & PIPE_TRANSFER_READ) { + unsigned base = tx->rect[0].base; unsigned i; for (i = 0; i < tx->nlayers; ++i) { nvc0_m2mf_transfer_rect(pscreen, &tx->rect[1], &tx->rect[0], @@ -328,9 +329,10 @@ nvc0_miptree_transfer_new(struct pipe_context *pctx, tx->rect[0].base += mt->layer_stride; tx->rect[1].base += size; } + tx->rect[0].z = z; + tx->rect[0].base = base; + tx->rect[1].base = 0; } - tx->rect[0].z = z; - tx->rect[1].base = 0; return &tx->base; } |