ac/nir/cull: Alway remove zero-area triangles in face culling.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 30 Jan 2023 14:34:40 +0000 (15:34 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Feb 2023 09:39:54 +0000 (09:39 +0000)
commit9af3a31744db8140ccb17e8e9131c5dc4dc186df
tree116ae6844f5dcae54e9a6b3d586f0cdf5102f90d
parent3508597aa1b88d1b5a6f78ad53d8abcc32cde2c9
ac/nir/cull: Alway remove zero-area triangles in face culling.

The face culling algorithm should have been disabled for
conservative overestimation because it already
(mistakenly) removed some close-to-zero area triangles.

Now that the driver disables it in that case,
let's always remove zero-area triangles.
This only costs +2 SALU instructions.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20987>
src/amd/common/ac_nir_cull.c