mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
v3d: Don't enable Early-z with discards when stencil updates are enabled
This fixes font rendering artifacts when Chromium/Firefox use Office365
PowerPoint set into fullscreen presentation mode.
Fixes: 5b951bcdd7 ("v3d: Enable Early-Z with discards when depth updates are disabled")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37349>
This commit is contained in:
parent
d1ff7cf445
commit
72d7864c6b
1 changed files with 6 additions and 2 deletions
|
|
@ -628,8 +628,12 @@ v3d_update_compiled_fs(struct v3d_context *v3d, uint8_t prim_mode)
|
|||
key->can_earlyz_with_discard = s->info.fs.uses_discard &&
|
||||
!s->info.fs.uses_fbfetch_output &&
|
||||
(!v3d->zsa || !job->zsbuf.texture ||
|
||||
!v3d->zsa->base.depth_enabled ||
|
||||
!v3d->zsa->base.depth_writemask) &&
|
||||
((!v3d->zsa->base.depth_enabled ||
|
||||
!v3d->zsa->base.depth_writemask) &&
|
||||
(!v3d->zsa->base.stencil[0].enabled ||
|
||||
!v3d->zsa->base.stencil[0].writemask) &&
|
||||
(!v3d->zsa->base.stencil[1].enabled ||
|
||||
!v3d->zsa->base.stencil[1].writemask))) &&
|
||||
!(v3d->active_queries && v3d->current_oq);
|
||||
|
||||
key->software_blend = v3d->blend->use_software;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue