Mesa (master): egl: handle EGL_PROTECTED_CONTENT_EXT for eglImage
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Nov 2 09:38:49 UTC 2020
Module: Mesa
Branch: master
Commit: 2aff88a94572c63f978273b7872f634b8ae10521
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2aff88a94572c63f978273b7872f634b8ae10521
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Fri Jun 12 15:28:32 2020 +0200
egl: handle EGL_PROTECTED_CONTENT_EXT for eglImage
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5096>
---
src/egl/main/eglimage.c | 6 ++++++
src/egl/main/eglimage.h | 3 +++
2 files changed, 9 insertions(+)
diff --git a/src/egl/main/eglimage.c b/src/egl/main/eglimage.c
index 9df6b6511d5..1c0ebe895e7 100644
--- a/src/egl/main/eglimage.c
+++ b/src/egl/main/eglimage.c
@@ -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;
}
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h
index 6d2e7ba8a2d..9837f05dad1 100644
--- a/src/egl/main/eglimage.h
+++ b/src/egl/main/eglimage.h
@@ -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;
};
/**
More information about the mesa-commit
mailing list