diff options
author | Marek Olšák <marek.olsak@amd.com> | 2017-02-15 18:49:11 +0100 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2017-02-18 01:22:08 +0100 |
commit | a550fbb510c998a0e484e9bf996e2d884ce3230e (patch) | |
tree | 56d620dd938e84e4e533863fe4d6a541dee619fb /src/gallium/drivers/radeon/r600_buffer_common.c | |
parent | 791e8ce04a7e9970f437858bdff0a1f8b47626ba (diff) |
gallium/radeon: use TCC line size as alignment in other places
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_buffer_common.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index 9e5a8a6dff..e37e36f3b4 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -369,7 +369,8 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx, u_upload_alloc(ctx->stream_uploader, 0, box->width + (box->x % R600_MAP_BUFFER_ALIGNMENT), - 256, &offset, (struct pipe_resource**)&staging, + rctx->screen->info.tcc_cache_line_size, + &offset, (struct pipe_resource**)&staging, (void**)&data); if (staging) { |