i965/vec4: Implement uclz in the vec4 backend
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 16 Mar 2023 23:01:16 +0000 (16:01 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Mar 2023 09:01:18 +0000 (09:01 +0000)
commit14f9f98dcb4b6034c331120acf405e9a3c64edc6
tree6ef9fad147d677ca5d32e614268b66a922a99dc5
parente7ea2aa46ca5fdb902ba6f0d73c341fdaf822f70
i965/vec4: Implement uclz in the vec4 backend

Commit 28311f9d029 moved ufind_msb lowering to NIR and started emitting
uclz.  Unfortunately, the vec4 backend never actually implemented uclz.

It's trivial to do.  Now it does.

Fixes: 28311f9d029 ("nir: intel/compiler: Move ufind_msb lowering to NIR")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21974>
src/intel/compiler/brw_vec4.h
src/intel/compiler/brw_vec4_nir.cpp
src/intel/compiler/brw_vec4_visitor.cpp