mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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:
parent
cec0bc73e5
commit
5bc24fe283
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue