gallium: add PIPE_CAP_GRAPHICS
authorMarek Olšák <marek.olsak@amd.com>
Thu, 7 Feb 2019 05:06:28 +0000 (00:06 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 29 Jul 2019 21:52:39 +0000 (17:52 -0400)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/gallium/auxiliary/util/u_screen.c
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h

index 810ba8d175127e20bf44a6f631865b5904ccc3d7..e6d0706226fc5e351ecaedd99b68f4b5f713dc1d 100644 (file)
@@ -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;
 
index ba7a9d440d46d537b53171720759b74177938ac0..a8ff17e742fc2bf200053874fb331ad5e813367d 100644 (file)
@@ -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.
index af67d593142d7471ad8e4fb39b180c22200eed1f..c926544688d095f52383b740b27d5b99c52a85a1 100644 (file)
@@ -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,