radeonsi: Disable EFC on VCN 2.2

VCN 2.2 doesn't support EFC.

Cc: mesa-stable

Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31198>
(cherry picked from commit 009017c33c)
This commit is contained in:
David Rosca 2024-09-17 09:36:15 +02:00 committed by Eric Engestrom
parent 318f75ef7f
commit cb29f5e0a7
2 changed files with 2 additions and 1 deletions

View file

@ -514,7 +514,7 @@
"description": "radeonsi: Disable EFC on VCN 2.2",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1150,6 +1150,7 @@ static bool si_vid_is_target_buffer_supported(struct pipe_screen *screen,
target->buffer_format == PIPE_FORMAT_R10G10B10X2_UNORM;
if (sscreen->info.vcn_ip_version < VCN_2_0_0 ||
sscreen->info.vcn_ip_version == VCN_2_2_0 ||
sscreen->info.vcn_ip_version >= VCN_5_0_0 ||
sscreen->debug_flags & DBG(NO_EFC))
return false;