v3d: fix condition for EZ disabling when stencil on
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 22 Mar 2023 18:05:17 +0000 (19:05 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Mar 2023 08:51:10 +0000 (08:51 +0000)
commit2413cb2965928f8927ae8d3d4d4d90fc64e034f8
treebf10f24484d7d6d870945ab9549dfdede853fbce
parent7941db652e9308a5db70e403111941a73eb95cee
v3d: fix condition for EZ disabling when stencil on

When stencil is enabled and it isn't non-op, Early-Z must be disabled.

The condition that checks this for stencil[0] is correct, but the one
for stencil[1] is wrong: it uses an "and" instead of "or" condition.

This affects dEQP-GLES3.functional.fragment_ops.interaction.basic_shader.14

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22081>
src/gallium/drivers/v3d/v3dx_state.c