From: Marek Olšák Date: Thu, 7 Feb 2019 05:06:28 +0000 (-0500) Subject: gallium: add PIPE_CAP_GRAPHICS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea7646dc13306e96188e7a7fd76e8a926bede13d;p=mesa.git gallium: add PIPE_CAP_GRAPHICS Reviewed-by: Alex Deucher Reviewed-by: Pierre-Eric Pelloux-Prayer --- 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,