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:
Pierre-Eric Pelloux-Prayer
2020-06-12 15:28:32 +02:00
parent 52268a3833
commit 2aff88a945
2 changed files with 9 additions and 0 deletions

View File

@@ -58,6 +58,12 @@ _eglParseKHRImageAttribs(_EGLImageAttribs *attrs, _EGLDisplay *disp,
attrs->GLTextureZOffset = val; attrs->GLTextureZOffset = val;
break; break;
case EGL_PROTECTED_CONTENT_EXT:
if (!disp->Extensions.EXT_protected_content)
return EGL_BAD_PARAMETER;
attrs->ProtectedContent = val;
break;
default: default:
return EGL_BAD_PARAMETER; return EGL_BAD_PARAMETER;
} }

View File

@@ -79,6 +79,9 @@ struct _egl_image_attribs
struct _egl_image_attrib_int DMABufSampleRangeHint; struct _egl_image_attrib_int DMABufSampleRangeHint;
struct _egl_image_attrib_int DMABufChromaHorizontalSiting; struct _egl_image_attrib_int DMABufChromaHorizontalSiting;
struct _egl_image_attrib_int DMABufChromaVerticalSiting; struct _egl_image_attrib_int DMABufChromaVerticalSiting;
/* EGL_EXT_protected_surface */
EGLBoolean ProtectedContent;
}; };
/** /**