mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
llvmpipe: simplify early/late zs tests selection
This does not change selection logic. Signed-off-by: Pavel Asyutchenko <sventeam@yandex.ru> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13979>
This commit is contained in:
parent
443ef18f0c
commit
0ba3e797ee
1 changed files with 2 additions and 4 deletions
|
|
@ -624,10 +624,8 @@ generate_fs_loop(struct gallivm_state *gallivm,
|
|||
if (shader->info.base.properties[TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL])
|
||||
depth_mode = EARLY_DEPTH_TEST | EARLY_DEPTH_WRITE;
|
||||
else if (!shader->info.base.writes_z && !shader->info.base.writes_stencil &&
|
||||
!shader->info.base.uses_fbfetch) {
|
||||
if (shader->info.base.writes_memory)
|
||||
depth_mode = LATE_DEPTH_TEST | LATE_DEPTH_WRITE;
|
||||
else if (key->alpha.enabled ||
|
||||
!shader->info.base.uses_fbfetch && !shader->info.base.writes_memory) {
|
||||
if (key->alpha.enabled ||
|
||||
key->blend.alpha_to_coverage ||
|
||||
shader->info.base.uses_kill ||
|
||||
shader->info.base.writes_samplemask) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue