mesa: Add a BUFFER_BITS mask for depth+stencil
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Oct 2016 21:15:41 +0000 (14:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jun 2017 01:15:05 +0000 (18:15 -0700)
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/mesa/main/mtypes.h

index 7f913608f6054275fa2b3c79b6ae721833983b45..65f638b89e692b788d8b3a3b9fc85b178f658dbf 100644 (file)
@@ -189,6 +189,9 @@ typedef enum
                             BUFFER_BIT_COLOR6 | \
                             BUFFER_BIT_COLOR7)
 
+/* Mask of bits for depth+stencil buffers */
+#define BUFFER_BITS_DEPTH_STENCIL (BUFFER_BIT_DEPTH | BUFFER_BIT_STENCIL)
+
 /**
  * Framebuffer configuration (aka visual / pixelformat)
  * Note: some of these fields should be boolean, but it appears that