radeonsi/tmz: use secure job if framebuffer has dcc

Fixes a hang with DCC.

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:
Pierre-Eric Pelloux-Prayer 2020-07-23 09:32:39 +02:00 committed by Marge Bot
parent cec0bc73e5
commit 5bc24fe283

View file

@ -2711,9 +2711,10 @@ bool si_gfx_resources_check_encrypted(struct si_context *sctx)
struct si_texture *tex = (struct si_texture *)surf->texture;
if (!(tex->buffer.flags & RADEON_FLAG_ENCRYPTED))
continue;
/* Are we reading from this framebuffer (blend) */
if ((blend->blend_enable_4bit >> (4 * i)) & 0xf) {
/* TODO: blend op */
/* Are we reading from this framebuffer */
if (((blend->blend_enable_4bit >> (4 * i)) & 0xf) ||
vi_dcc_enabled(tex, 0)) {
use_encrypted_bo = true;
}
}