nir: Switch to using 1-bit Booleans for almost everything
[mesa.git] / src / compiler / spirv / spirv_to_nir.c
index 8c9dc7d19ebbc7dd3040b3aa244a92469916ce9b..7dc6bc914d6f9374440702959f9d0f54e5758fb1 100644 (file)
@@ -1468,7 +1468,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
           opcode == SpvOpSpecConstantFalse)
          int_val = get_specialization(b, val, int_val);
 
-      val->constant->values[0].u32[0] = int_val ? NIR_TRUE : NIR_FALSE;
+      val->constant->values[0].b[0] = int_val != 0;
       break;
    }