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