From 367332b0fce4a613676c0e6ea44c58b2c9c3b558 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 21 Mar 2020 06:47:31 +1000 Subject: [PATCH] llvmpipe: don't allow branch to end for early Z with multisample Don't allow the branching optimisation with multisample enabled as we have to check all samples. Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 79a8cc1fe1a..8c3fc05fa04 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -570,7 +570,7 @@ generate_fs_loop(struct gallivm_state *gallivm, z, z_fb, s_fb, facing, &z_value, &s_value, - !simple_shader); + !simple_shader && !key->multisample); if (depth_mode & EARLY_DEPTH_WRITE) { lp_build_depth_stencil_write_swizzled(gallivm, type, -- 2.30.2