Mesa (master): gallium: add new cap PIPE_CAP_DEVICE_PROTECTED_CONTENT

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 2 09:38:49 UTC 2020


Module: Mesa
Branch: master
Commit: 7748e501382bb7c8e845ac67f4631c3fd5e354df
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7748e501382bb7c8e845ac67f4631c3fd5e354df

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Mon May 18 17:15:55 2020 +0200

gallium: add new cap PIPE_CAP_DEVICE_PROTECTED_CONTENT

Will be used to implement EGL_EXT_protected_surface.

Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5096>

---

 docs/gallium/screen.rst               | 1 +
 src/gallium/auxiliary/util/u_screen.c | 1 +
 src/gallium/include/pipe/p_defines.h  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/docs/gallium/screen.rst b/docs/gallium/screen.rst
index ff8d36086ba..f887f080ddc 100644
--- a/docs/gallium/screen.rst
+++ b/docs/gallium/screen.rst
@@ -592,6 +592,7 @@ The integer capabilities:
 * ``PIPE_CAP_NIR_ATOMICS_AS_DEREF``: Whether NIR atomics instructions should reference atomics as NIR derefs instead of by indices.
 * ``PIPE_CAP_NO_CLIP_ON_COPY_TEX``: Driver doesn't want x/y/width/height clipped based on src size when doing a copy texture operation (eg: may want out-of-bounds reads that produce 0 instead of leaving the texture content undefined)
 * ``PIPE_CAP_MAX_TEXTURE_MB``: Maximum texture size in MB (default is 1024)
+* ``PIPE_CAP_DEVICE_PROTECTED_CONTENT``: Whether the device support protected / encrypted content.
 
 .. _pipe_capf:
 
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index 35933c09afa..2802280806e 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -216,6 +216,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
    case PIPE_CAP_RESOURCE_FROM_USER_MEMORY:
    case PIPE_CAP_RESOURCE_FROM_USER_MEMORY_COMPUTE_ONLY:
    case PIPE_CAP_DEVICE_RESET_STATUS_QUERY:
+   case PIPE_CAP_DEVICE_PROTECTED_CONTENT:
    case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS:
    case PIPE_CAP_TEXTURE_FLOAT_LINEAR:
    case PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR:
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index b55ae81bdee..6dbcf66910f 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -969,6 +969,7 @@ enum pipe_cap
    PIPE_CAP_NO_CLIP_ON_COPY_TEX,
    PIPE_CAP_MAX_TEXTURE_MB,
    PIPE_CAP_SHADER_ATOMIC_INT64,
+   PIPE_CAP_DEVICE_PROTECTED_CONTENT,
 };
 
 /**



More information about the mesa-commit mailing list