Lines Matching defs:ref
1219 v3d_nir_sort_constant_ubo_load(nir_block *block, nir_intrinsic_instr *ref)
1223 nir_instr *ref_inst = &ref->instr;
1224 uint32_t ref_offset = nir_src_as_uint(ref->src[1]);
1225 uint32_t ref_index = nir_src_as_uint(ref->src[0]);
1227 /* Go through all instructions after ref searching for constant UBO
1231 nir_instr *inst = &ref->instr;
1279 /* We will move this load if its offset is smaller than ref's
1280 * (in which case we will move it before ref) or if the offset
1281 * is larger than ref's but there are sequence breakers in
1282 * in between (in which case we will move it after ref and
1290 * If we are moving it before ref, we want to check any other
1291 * UBO loads we placed before ref and make sure we insert this
1293 * it after ref.