mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radeonsi: don't set READ_ONLY for const_uploader to fix bindless texture hangs
Bindless textures can update descriptors with WRITE_DATA.
Cc: 19.1 <mesa-stable@lists.freedesktop.org>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Dave Airlie airlied@redhat.com
(cherry picked from commit 5058d62b05)
This commit is contained in:
parent
1e3b877903
commit
83c4597f19
1 changed files with 1 additions and 3 deletions
|
|
@ -464,9 +464,7 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen,
|
|||
0, PIPE_USAGE_DEFAULT,
|
||||
SI_RESOURCE_FLAG_32BIT |
|
||||
(use_sdma_upload ?
|
||||
SI_RESOURCE_FLAG_UPLOAD_FLUSH_EXPLICIT_VIA_SDMA :
|
||||
(sscreen->cpdma_prefetch_writes_memory ?
|
||||
0 : SI_RESOURCE_FLAG_READ_ONLY)));
|
||||
SI_RESOURCE_FLAG_UPLOAD_FLUSH_EXPLICIT_VIA_SDMA : 0));
|
||||
if (!sctx->b.const_uploader)
|
||||
goto fail;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue