egl: implement EGL_EXT_protected_surface support

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5096>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2020-05-11 18:26:30 +02:00
parent 9698a222a6
commit bd182777c8
15 changed files with 79 additions and 3 deletions

View File

@@ -1018,6 +1018,8 @@ dri2_create_image_common(__DRIscreen *_screen,
return NULL;
tex_usage |= PIPE_BIND_CURSOR;
}
if (use & __DRI_IMAGE_USE_PROTECTED)
tex_usage |= PIPE_BIND_PROTECTED;
img = CALLOC_STRUCT(__DRIimageRec);
if (!img)