i965/vec4: Implement uclz in the vec4 backend

Commit 28311f9d02 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: 28311f9d02 ("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>
This commit is contained in:
Kenneth Graunke
2023-03-16 16:01:16 -07:00
committed by Marge Bot
parent e7ea2aa46c
commit 14f9f98dcb
3 changed files with 8 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ public:
EMIT1(FBH)
EMIT1(FBL)
EMIT1(CBIT)
EMIT1(LZD)
EMIT3(MAD)
EMIT2(ADDC)
EMIT2(SUBB)