v3d: set depth compare function correctly
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 13 Apr 2023 11:21:31 +0000 (13:21 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Apr 2023 20:20:43 +0000 (20:20 +0000)
commit82c22580192502bcacb9f96319b560a09031219b
tree9ca5686fcc1493d1bdad2a395f6d1ec895851bd7
parentc84989c4cf3d95871047cb2e2bb87e41663b13dc
v3d: set depth compare function correctly

Depth compare function must be set to the configured one only when
compare mode is enabled; otherwise it must be configured to never.

v2 (Eric):
- Handle V3D < 4.0 case

CC: mesa-stable
Reviewed-by: Eric Engestrom <eric@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22470>
src/gallium/drivers/v3d/v3dx_state.c