i965/vec4: Implement uclz in the vec4 backend
Commit28311f9d02moved 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:
committed by
Marge Bot
parent
e7ea2aa46c
commit
14f9f98dcb
@@ -1636,6 +1636,12 @@ vec4_visitor::nir_emit_alu(nir_alu_instr *instr)
|
||||
break;
|
||||
}
|
||||
|
||||
case nir_op_uclz:
|
||||
assert(nir_dest_bit_size(instr->dest.dest) == 32);
|
||||
assert(nir_src_bit_size(instr->src[0].src) == 32);
|
||||
emit(LZD(dst, op[0]));
|
||||
break;
|
||||
|
||||
case nir_op_find_lsb:
|
||||
assert(nir_dest_bit_size(instr->dest.dest) == 32);
|
||||
assert(nir_src_bit_size(instr->src[0].src) == 32);
|
||||
|
||||
Reference in New Issue
Block a user