From: Pierre-Eric Pelloux-Prayer Date: Fri, 28 Feb 2020 16:10:45 +0000 (+0100) Subject: radeonsi: force using staging texture when uploading to secure texture X-Git-Tag: upstream/21.0.0~10125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d96c26b67da5a053d57782d42cb80447e4ade1a;p=platform%2Fupstream%2Fmesa.git radeonsi: force using staging texture when uploading to secure texture Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c index ab2a234..8856f0a 100644 --- a/src/gallium/drivers/radeonsi/si_texture.c +++ b/src/gallium/drivers/radeonsi/si_texture.c @@ -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 =