summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-11-02 04:53:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-11-02 04:53:47 +0000
commitb44518130b33cadb5c1d619e9e936ae0e0dbf7cb (patch)
tree6069eb03c39fbc79808a7d94f857118cce75cbe3 /lib/mesa/src/gallium/drivers/llvmpipe/lp_setup_context.h
parent32aeb3c41fedbbd7b11aacfec48e8f699d16bff0 (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.h8
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