Hi,

I'm experiencing a crash while verifying aapoint functionality, and after 
debugging, I found that there may be a problem with the following statement.

In nir_draw_helpers.c,

static void
nir_lower_aapoint_impl(nir_function_impl *impl, lower_aapoint *state,
                       nir_alu_type bool_type)
{
............
   switch (bool_type) {
   case nir_type_bool1:
      sel = nir_b32csel(b, nir_fge(b, k, dist), coverage, chan_val_one);
      break;
   case nir_type_bool32:
      sel = nir_b32csel(b, nir_fge32(b, k, dist), coverage, chan_val_one);
      break;
   ............

The bool_type passed to this function is nir_type_bool1, when I change 
nir_b32csel to nir_bcsel, the test passes. Is it a bug? Can you help confirm if 
it's okay to change it this way?

Best Regards,
Anddy Ren



?????
?????????????????????????????????????????????????????
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for 
the sole use of its intended recipient. Any unauthorized review, use, copying 
or forwarding of this email or the content of this email is strictly prohibited.

Reply via email to