nir/spirv: Translate SPIR-V to NIR for new INTEL_shader_integer_functions2 opcodes
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 21 Sep 2018 07:35:18 +0000 (00:35 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 00:18:57 +0000 (00:18 +0000)
commit44471a76e9b32410d02c202c67ce48a3b69770a8
tree881315e72c5b3ab37706270963235d4b9daea1e7
parentde6c0f848797d26d28223bcad25da03654461874
nir/spirv: Translate SPIR-V to NIR for new INTEL_shader_integer_functions2 opcodes

v2: Rebase on 272e927d0e9 ("nir/spirv: initial handling of OpenCL.std
extension opcodes")

v3: Add missing SpvOpUCountTrailingZerosINTEL case to switch in
vtn_handle_body_instruction. Remove stray semicolon in
vtn_nir_alu_op_for_spirv_opcode. Use umin instead of umax for
SpvOpUCountTrailingZerosINTEL "lowering" in vtn_handle_alu.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/767>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_alu.c