etnaviv: fix ZS clear value computation
authorLucas Stach <l.stach@pengutronix.de>
Wed, 23 Nov 2022 11:29:40 +0000 (12:29 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Nov 2022 21:23:01 +0000 (21:23 +0000)
commit58259e14377c8facc1648cab3d361a6942b59d96
treeca161e1c05a917e361e299b6e6b06d8397d1a655
parent4449b5a2714c463a4250bc3a1847430212f04de6
etnaviv: fix ZS clear value computation

Instead of hand-rolling our own conversion and apparently getting the
rounding wrong, just use the common util function.

Fixes piglit test spec@!opengl 1.1@depthstencil-default_fb-clear

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19958>
src/gallium/drivers/etnaviv/etnaviv_translate.h
src/gallium/drivers/etnaviv/etnaviv_util.h