mesa: Simplify ptn_log() a bit
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 10 Jul 2023 21:05:50 +0000 (16:05 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 12 Jul 2023 01:34:27 +0000 (01:34 +0000)
commit5b835f1a08a6f142273362f94b71f1d29ccad7ae
treea873d5bd4ace99e3da066cb3625fb8d77500ab3f
parent2198eedd045d4ed66bd835f77dc746e757b04da2
mesa: Simplify ptn_log() a bit

Using fdiv lets us drop the fneg. nir_opt_algebraic will re-optimize
this if the driver implements fdiv using fmul and frcp.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23089>
src/mesa/program/prog_to_nir.c