static bool
assert_ssa_def_is_not_int(nir_ssa_def *def, void *arg)
{
- BITSET_WORD *int_types = arg;
+ MAYBE_UNUSED BITSET_WORD *int_types = arg;
assert(!BITSET_TEST(int_types, def->index));
return true;
}
nir_builder *b, nir_intrinsic_instr *intrin,
struct value *value, unsigned index)
{
- const struct glsl_type *type = entry->dst->type;
- unsigned num_components = glsl_get_vector_elements(type);
- assert(index < num_components);
+ assert(index < glsl_get_vector_elements(entry->dst->type));
/* We don't have the element available, so let the instruction do the work. */
if (!entry->src.ssa.def[index])
*size = 0;
*align = 0;
for (unsigned i = 0; i < type->length; i++) {
- unsigned elem_size, elem_align;
+ unsigned elem_size = 0, elem_align = 0;
glsl_get_natural_size_align_bytes(type->fields.structure[i].type,
&elem_size, &elem_align);
*align = MAX2(*align, elem_align);