projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b0891
)
r600g: fix transfer stride.
author
Dave Airlie
<airlied@redhat.com>
Wed, 13 Oct 2010 00:14:55 +0000
(10:14 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 13 Oct 2010 05:55:48 +0000
(15:55 +1000)
fixes segfaults
src/gallium/drivers/r600/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_texture.c
b/src/gallium/drivers/r600/r600_texture.c
index d1339f69e73388348ba3afc923bea615565b5203..94886acc38e33c9c25c138e4851bebcee7aef133 100644
(file)
--- a/
src/gallium/drivers/r600/r600_texture.c
+++ b/
src/gallium/drivers/r600/r600_texture.c
@@
-387,6
+387,9
@@
struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx,
FREE(trans);
return NULL;
}
+
+ trans->transfer.stride =
+ ((struct r600_resource_texture *)trans->linear_texture)->pitch_in_bytes[0];
if (usage & PIPE_TRANSFER_READ) {
/* We cannot map a tiled texture directly because the data is
* in a different order, therefore we do detiling using a blit. */