Mesa (master): gallium: add PIPE_CAP_GRAPHICS
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 29 21:54:44 UTC 2019
Module: Mesa
Branch: master
Commit: ea7646dc13306e96188e7a7fd76e8a926bede13d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea7646dc13306e96188e7a7fd76e8a926bede13d
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Feb 7 00:06:28 2019 -0500
gallium: add PIPE_CAP_GRAPHICS
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
---
src/gallium/auxiliary/util/u_screen.c | 1 +
src/gallium/docs/source/screen.rst | 2 ++
src/gallium/include/pipe/p_defines.h | 1 +
3 files changed, 4 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index 810ba8d1751..e6d0706226f 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -43,6 +43,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
case PIPE_CAP_POINT_SPRITE:
return 0;
+ case PIPE_CAP_GRAPHICS:
case PIPE_CAP_MAX_RENDER_TARGETS:
return 1;
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
index ba7a9d440d4..a8ff17e742f 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -22,6 +22,8 @@ or integer values, use :ref:`get_param`.
The integer capabilities:
+* ``PIPE_CAP_GRAPHICS``: Whether graphics is supported. If not, contexts can
+ only be created with PIPE_CONTEXT_COMPUTE_ONLY.
* ``PIPE_CAP_NPOT_TEXTURES``: Whether :term:`NPOT` textures may have repeat modes,
normalized coordinates, and mipmaps.
* ``PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS``: How many dual-source blend RTs are support.
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index af67d593142..c926544688d 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -685,6 +685,7 @@ enum pipe_conservative_raster_mode
*/
enum pipe_cap
{
+ PIPE_CAP_GRAPHICS,
PIPE_CAP_NPOT_TEXTURES,
PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS,
PIPE_CAP_ANISOTROPIC_FILTER,
More information about the mesa-commit
mailing list