radeonsi: force using staging texture when uploading to secure texture

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2020-02-28 17:10:45 +01:00
parent fe2a3b804b
commit 5d96c26b67
+1 -1
View File
@@ -1660,7 +1660,7 @@ static void *si_texture_transfer_map(struct pipe_context *ctx, struct pipe_resou
* Use the staging texture for uploads if the underlying BO
* is busy.
*/
if (!tex->surface.is_linear)
if (!tex->surface.is_linear || (tex->buffer.flags & RADEON_FLAG_ENCRYPTED))
use_staging_texture = true;
else if (usage & PIPE_TRANSFER_READ)
use_staging_texture =