radeonsi/tmz: use secure job if using an encrypted z/s buffer
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:

committed by
Marge Bot

parent
5bc24fe283
commit
59b267dea4
@@ -2720,9 +2720,15 @@ bool si_gfx_resources_check_encrypted(struct si_context *sctx)
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: we should assert that either use_encrypted_bo is false,
|
||||
* or all writable buffers are encrypted.
|
||||
*/
|
||||
if (sctx->framebuffer.state.zsbuf) {
|
||||
struct si_texture* zs = (struct si_texture *)sctx->framebuffer.state.zsbuf->texture;
|
||||
if (zs &&
|
||||
(zs->buffer.flags & RADEON_FLAG_ENCRYPTED)) {
|
||||
/* TODO: This isn't needed if depth.func is PIPE_FUNC_NEVER or PIPE_FUNC_ALWAYS */
|
||||
use_encrypted_bo = true;
|
||||
}
|
||||
}
|
||||
|
||||
return use_encrypted_bo;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user