Commit 7cfece82 authored by Jason Ekstrand's avatar Jason Ekstrand

i965/fs: Support nir_intrinsic_vote_feq

Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <>
Reviewed-by: Iago Toral's avatarIago Toral Quiroga <>
parent 0e893356
......@@ -4423,8 +4423,14 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
bld.MOV(retype(dest, BRW_REGISTER_TYPE_D), component(res1, 0));
case nir_intrinsic_vote_feq:
case nir_intrinsic_vote_ieq: {
fs_reg value = get_nir_src(instr->src[0]);
if (instr->intrinsic == nir_intrinsic_vote_feq) {
const unsigned bit_size = nir_src_bit_size(instr->src[0]);
value.type = brw_reg_type_from_bit_size(bit_size, BRW_REGISTER_TYPE_F);
fs_reg uniformized = bld.emit_uniformize(value);
const fs_builder ubld = bld.exec_all().group(1, 0);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment