diff options
author | Marek Olšák <[email protected]> | 2017-02-15 20:44:24 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-02-18 01:22:08 +0100 |
commit | 45240ce598c8ab38b5e0c10cbe7050549561eced (patch) | |
tree | 70308306e07a9ca58951c8fb992fb623864cd496 /src/gallium/drivers/radeonsi/si_compute.c | |
parent | a41587433c4dfd359eebf3fd266975e51e8b3fd6 (diff) |
radeonsi: use R600_RESOURCE_FLAG_UNMAPPABLE where it's desirable
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 88d72c1ea2a..f4efb0df8d3 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -289,8 +289,10 @@ static bool si_setup_compute_scratch_buffer(struct si_context *sctx, r600_resource_reference(&sctx->compute_scratch_buffer, NULL); sctx->compute_scratch_buffer = (struct r600_resource*) - pipe_buffer_create(&sctx->screen->b.b, 0, - PIPE_USAGE_DEFAULT, scratch_needed); + r600_aligned_buffer_create(&sctx->screen->b.b, + R600_RESOURCE_FLAG_UNMAPPABLE, + PIPE_USAGE_DEFAULT, + scratch_needed, 256); if (!sctx->compute_scratch_buffer) return false; |