Mesa (main): gallium: add a sample0 only option to blitter.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 31 23:53:57 UTC 2021


Module: Mesa
Branch: main
Commit: 4d747c0c894e971625aa017a9bb2dec75290076d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d747c0c894e971625aa017a9bb2dec75290076d

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Aug 23 17:25:13 2021 +1000

gallium: add a sample0 only option to blitter.

Vulkan depth/stencil resolves can ask for just sample 0 instead
of averaging. Just add a flag to the state to allow it.

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12504>

---

 src/gallium/include/pipe/p_state.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index b210fd70813..785a5906237 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -829,7 +829,7 @@ struct pipe_blit_info
 
    unsigned mask; /**< bitmask of PIPE_MASK_R/G/B/A/Z/S */
    unsigned filter; /**< PIPE_TEX_FILTER_* */
-
+   bool sample0_only;
    bool scissor_enable;
    struct pipe_scissor_state scissor;
 



More information about the mesa-commit mailing list