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:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user