summaryrefslogtreecommitdiff
path: root/src/gallium/include
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2020-08-10 17:32:05 -0400
committerMarge Bot <eric+marge@anholt.net>2020-08-10 23:25:57 +0000
commit2368813ce6f6e767226ae4698159106f467ce428 (patch)
tree4f966aa5896a522e221e4f52b3eab0584462391d /src/gallium/include
parentcf52b40fb0bf53816ca4bb90e31ecd146fbcb533 (diff)
gallium: add pipe_transfer_usage for z/s only mappings
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5338>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_defines.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index d82ffcd14dc..88e65ca787e 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -353,6 +353,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).
*/