diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-02 04:53:47 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-02 04:53:47 +0000 |
commit | b44518130b33cadb5c1d619e9e936ae0e0dbf7cb (patch) | |
tree | 6069eb03c39fbc79808a7d94f857118cce75cbe3 /lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h | |
parent | 32aeb3c41fedbbd7b11aacfec48e8f699d16bff0 (diff) |
Merge Mesa 23.1.9
Diffstat (limited to 'lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h')
-rw-r--r-- | lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h b/lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h index d848a1440..178bc6008 100644 --- a/lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h +++ b/lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h @@ -306,5 +306,13 @@ lp_setup_bin_rectangle(struct lp_setup_context *setup, struct lp_rast_rectangle *rect, boolean opaque); +static inline boolean +lp_setup_zero_sample_mask(struct lp_setup_context *setup) +{ + uint32_t sample_mask = setup->fs.current.jit_context.sample_mask; + return sample_mask == 0 || + (!setup->multisample && (sample_mask & 1) == 0); +} + #endif |