radeonsi: don't set READ_ONLY for const_uploader to fix bindless texture hangs
authorMarek Olšák <marek.olsak@amd.com>
Tue, 25 Jun 2019 22:59:50 +0000 (18:59 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jul 2019 21:24:16 +0000 (17:24 -0400)
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
src/gallium/drivers/radeonsi/si_pipe.c

index 0b3776b..85e9fe8 100644 (file)
@@ -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;