mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
llvmpipe: disable alpha test branch if multisample is enabled.
If multisample is enabled and alpha testing happens, the branch can jump out of the fragment shader before the other samples are generated. Just don't take the branch optimisation post alpha test if multisample is enabled. This should fix some rendering bugs in kicad with multisample enabled. Cc: mesa-stable Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17049>
This commit is contained in:
parent
18585cac04
commit
6e5d126a65
1 changed files with 1 additions and 1 deletions
|
|
@ -1005,7 +1005,7 @@ generate_fs_loop(struct gallivm_state *gallivm,
|
|||
|
||||
lp_build_alpha_test(gallivm, key->alpha.func, type, cbuf_format_desc,
|
||||
&mask, alpha, alpha_ref_value,
|
||||
(depth_mode & LATE_DEPTH_TEST) != 0);
|
||||
((depth_mode & LATE_DEPTH_TEST) != 0) && !key->multisample);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue