mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
radeonsi/tmz: fail si_texture_transfer_map if tex is encrypted
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6049>
This commit is contained in:
parent
55b018b634
commit
de088daccc
1 changed files with 3 additions and 0 deletions
|
|
@ -1634,6 +1634,9 @@ static void *si_texture_transfer_map(struct pipe_context *ctx, struct pipe_resou
|
||||||
assert(!(texture->flags & SI_RESOURCE_FLAG_FORCE_LINEAR));
|
assert(!(texture->flags & SI_RESOURCE_FLAG_FORCE_LINEAR));
|
||||||
assert(box->width && box->height && box->depth);
|
assert(box->width && box->height && box->depth);
|
||||||
|
|
||||||
|
if (tex->buffer.flags & RADEON_FLAG_ENCRYPTED)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (tex->is_depth) {
|
if (tex->is_depth) {
|
||||||
/* Depth textures use staging unconditionally. */
|
/* Depth textures use staging unconditionally. */
|
||||||
use_staging_texture = true;
|
use_staging_texture = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue