summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-06-25 18:59:50 -0400
committerMarek Olšák <[email protected]>2019-07-09 17:24:16 -0400
commit5058d62b05d4f619ccb4f6ea9f6d5c5c33e3b968 (patch)
tree7f8cfe16a615e1d6d967541f971777443b5ad1a2
parent6074eae753e8735e7c4477e0b0dc470a0681d874 (diff)
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 <[email protected]> Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Acked-by: Dave Airlie [email protected]
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 0b3776b1f7f..85e9fe8f7bc 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -459,9 +459,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;