nir,microsoft: Move scale_fdiv into a common NIR pass
authorJason Ekstrand <jason.ekstrand@collabora.com>
Fri, 15 Apr 2022 20:06:40 +0000 (15:06 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 16 Apr 2022 02:10:25 +0000 (02:10 +0000)
commit319d87846c39674cd314cfc537edbfda61ec446e
treeca1a671ce76ccffbc7a6dcfdb67b82268fa6ed51
parentad0dc8e4abaa6d367a42f7594345b733c451b959
nir,microsoft: Move scale_fdiv into a common NIR pass

While we're at it, convert to nir_shader_instructions_pass() to get rid
of some boilerplate and get metadata correct.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15983>
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_scale_fdiv.c [new file with mode: 0644]
src/microsoft/clc/clc_compiler.c