Acked-by: Jordan Justen <jordan.l.justen@intel.com>
get_src_bool(struct ntv_context *ctx, nir_src *src)
{
SpvId def = get_src_uint(ctx, src);
- assert(nir_src_bit_size(*src) == 32);
+ assert(nir_src_bit_size(*src) == 1);
unsigned num_components = nir_src_num_components(*src);
return uvec_to_bvec(ctx, def, num_components);
}
NIR_PASS_V(nir, lower_uniforms_to_ubo);
NIR_PASS_V(nir, position_to_vulkan);
NIR_PASS_V(nir, nir_lower_regs_to_ssa);
- NIR_PASS_V(nir, nir_lower_bool_to_float);
optimize_nir(nir);
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_function_temp);
NIR_PASS_V(nir, lower_discard_if);