radeonsi: enable protected context support for Android

Enable protected context capability for Android
when TMZ support is available. This is needed for Widevine L1 secure
video playback on Android, which requires a protected context.

Signed-off-by: jinmiliu <jinming.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40980>
This commit is contained in:
jinmiliu 2026-04-15 09:42:43 -04:00 committed by Marge Bot
parent b41cd59790
commit 809bf45c12

View file

@ -631,7 +631,9 @@ void si_init_screen_caps(struct si_screen *sscreen)
caps->resource_from_user_memory = !UTIL_ARCH_BIG_ENDIAN && sscreen->info.has_userptr;
caps->device_protected_surface = sscreen->info.has_tmz_support;
#if defined(__ANDROID__) || defined(ANDROID)
caps->device_protected_context = sscreen->info.has_tmz_support;
#endif
caps->min_map_buffer_alignment = SI_MAP_BUFFER_ALIGNMENT;
caps->max_vertex_buffers = SI_MAX_ATTRIBS;