v2: Retype LZD source as UD to avoid potential problems with 0x80000000. Suggested by Matt. Also update comment about problem values with LZD(abs(x)). Suggested by Curro.
c2019c6 i965: Use LZD to implement nir_op_ifind_msb on Gen < 7
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 54 +++++++++++++++++++++-----
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 57 ++++++++++++++++++++++------
2 files changed, 90 insertions(+), 21 deletions(-)
Upstream: cgit.freedesktop.org