case nir_op_extract_i8: {
assert(comps == 1 && "should be scalarized");
assert((src_sz == 16 || src_sz == 32) && "should be lowered");
- unsigned byte = nir_src_as_uint(instr->src[1].src);
+ unsigned byte = nir_alu_src_as_uint(instr->src[1]);
if (s0.swizzle == BI_SWIZZLE_H11) {
assert(byte < 2);
case nir_op_extract_i16: {
assert(comps == 1 && "should be scalarized");
assert(src_sz == 32 && "should be lowered");
- unsigned half = nir_src_as_uint(instr->src[1].src);
+ unsigned half = nir_alu_src_as_uint(instr->src[1]);
assert(half == 0 || half == 1);
if (instr->op == nir_op_extract_i16)
case nir_op_insert_u16: {
assert(comps == 1 && "should be scalarized");
- unsigned half = nir_src_as_uint(instr->src[1].src);
+ unsigned half = nir_alu_src_as_uint(instr->src[1]);
assert(half == 0 || half == 1);
if (half == 0)