Module: Mesa Branch: master Commit: 2368813ce6f6e767226ae4698159106f467ce428 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2368813ce6f6e767226ae4698159106f467ce428
Author: Mike Blumenkrantz <[email protected]> Date: Mon Aug 10 17:32:05 2020 -0400 gallium: add pipe_transfer_usage for z/s only mappings Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5338> --- src/gallium/include/pipe/p_defines.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 @@ -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). _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
