i965: Use LZD to implement nir_op_ifind_msb on Gen < 7

Graphics / Mesa 3D Graphics Library / Mesa - Ian Romanick [intel.com] - 19 July 2016 14:19 UTC

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


  • Share