This just adds the system value
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9399>
case nir_intrinsic_load_sample_id:
case nir_intrinsic_load_sample_pos:
case nir_intrinsic_load_sample_mask_in:
+ case nir_intrinsic_load_view_index:
bld_base->sysval_intrin(bld_base, instr, result);
break;
case nir_intrinsic_load_helper_invocation:
case nir_intrinsic_load_sample_mask_in:
result[0] = bld->system_values.sample_mask_in;
break;
+ case nir_intrinsic_load_view_index:
+ result[0] = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.view_index);
+ break;
}
}
LLVMValueRef sample_id;
LLVMValueRef sample_pos;
LLVMValueRef sample_mask_in;
+ LLVMValueRef view_index;
};