etnaviv: use nir_lower_clip_halfz instead of open-coding
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Sun, 15 Dec 2019 17:09:46 +0000 (18:09 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 3 Jan 2020 22:48:19 +0000 (22:48 +0000)
commit56fc791b3190be2a9a2295b0e6245687645c9b84
treea381f8d583eea2552024b34262f416704b7fb6ef
parentd9ff5f0414946a493692b1f82338d006aa1f7df2
etnaviv: use nir_lower_clip_halfz instead of open-coding

We already have a helper for this, so let's use that instead of rolling
our own version.

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Paul Cercueil <paul@crapouillou.net>
src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c