From: Marek Olšák Date: Sat, 20 Jun 2020 00:54:58 +0000 (-0400) Subject: radeonsi: make wait_mem_scratch unmappable X-Git-Tag: upstream/21.0.0~8237 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b1e42d2c228730fb3c04646e45b82c5e7059b6c;p=platform%2Fupstream%2Fmesa.git radeonsi: make wait_mem_scratch unmappable Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 99fa2b4..91913c7 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -599,7 +599,10 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, unsign } if (sctx->chip_class >= GFX9 || si_compute_prim_discard_enabled(sctx)) { - sctx->wait_mem_scratch = si_resource(pipe_buffer_create(screen, 0, PIPE_USAGE_DEFAULT, 8)); + sctx->wait_mem_scratch = + si_aligned_buffer_create(screen, SI_RESOURCE_FLAG_UNMAPPABLE, + PIPE_USAGE_DEFAULT, 8, + sscreen->info.tcc_cache_line_size); if (!sctx->wait_mem_scratch) goto fail;