nir: fix constant evaluation of fddx/fddy sourcing Inf & NaN constant
authorMarek Olšák <marek.olsak@amd.com>
Sat, 8 Jul 2023 22:00:45 +0000 (18:00 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 19 Aug 2023 18:18:52 +0000 (14:18 -0400)
commitee225e31c1311bac5e3b2d476ac8eea4006b1ac4
tree98926617f7bee920b266b97035431c7e66ab8701
parent8780f66c3ae1ebe850bfdbf9c2ce2585be836cfe
nir: fix constant evaluation of fddx/fddy sourcing Inf & NaN constant

A derivative of NaN is NaN.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24792>
src/compiler/nir/nir_opcodes.py