diff options
author | Dave Airlie <airlied@redhat.com> | 2010-10-13 10:14:55 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-13 15:55:48 +1000 |
commit | e9acf9a3bb45caea7b0fba197aa9ab01f24bb63f (patch) | |
tree | b82b56c60ea4b9f169c1aad9a8caa5e6811cdd46 /src | |
parent | e3b089126c63c7178d725fbe245ca09d3f9edba1 (diff) |
r600g: fix transfer stride.
fixes segfaults
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index d1339f69e7..94886acc38 100644 --- 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. */ |