gallium: add pipe_transfer_usage for z/s only mappings
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 10 Aug 2020 21:32:05 +0000 (17:32 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 10 Aug 2020 23:25:57 +0000 (23:25 +0000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5338>

src/gallium/include/pipe/p_defines.h

index d82ffcd14dc8e5b22904d7329b34d79208fc31ad..88e65ca787ec537336801cf9bc8cabfb030b2cdf 100644 (file)
@@ -352,6 +352,16 @@ enum pipe_transfer_usage
     */
    PIPE_TRANSFER_THREAD_SAFE = 1 << 15,
 
+   /**
+    * Map only the depth aspect of a resource
+    */
+   PIPE_TRANSFER_DEPTH_ONLY = 1 << 16,
+
+   /**
+    * Map only the stencil aspect of a resource
+    */
+   PIPE_TRANSFER_STENCIL_ONLY = 1 << 17,
+
    /**
     * This and higher bits are reserved for private use by drivers. Drivers
     * should use this as (PIPE_TRANSFER_DRV_PRV << i).