mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
egl: handle EGL_PROTECTED_CONTENT_EXT for eglImage
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:
parent
52268a3833
commit
2aff88a945
2 changed files with 9 additions and 0 deletions
|
|
@ -58,6 +58,12 @@ _eglParseKHRImageAttribs(_EGLImageAttribs *attrs, _EGLDisplay *disp,
|
|||
|
||||
attrs->GLTextureZOffset = val;
|
||||
break;
|
||||
case EGL_PROTECTED_CONTENT_EXT:
|
||||
if (!disp->Extensions.EXT_protected_content)
|
||||
return EGL_BAD_PARAMETER;
|
||||
|
||||
attrs->ProtectedContent = val;
|
||||
break;
|
||||
default:
|
||||
return EGL_BAD_PARAMETER;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,6 +79,9 @@ struct _egl_image_attribs
|
|||
struct _egl_image_attrib_int DMABufSampleRangeHint;
|
||||
struct _egl_image_attrib_int DMABufChromaHorizontalSiting;
|
||||
struct _egl_image_attrib_int DMABufChromaVerticalSiting;
|
||||
|
||||
/* EGL_EXT_protected_surface */
|
||||
EGLBoolean ProtectedContent;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue