Lines Matching defs:reg

48 i915_release_temp(struct i915_fp_compile *p, int reg)
50 p->temp_flag &= ~(1 << reg);
82 uint reg = UREG(type, nr);
86 return reg;
92 return reg;
97 return reg;
100 *(p->decl++) = (D0_DCL | D0_DEST(reg) | d0_flags);
108 return reg;
222 temp = i915_get_temp(p); /* get temp reg index */
226 tempReg, A0_DEST_CHANNEL_ALL, /* dest reg, writemask */
287 unsigned reg, idx;
294 for (reg = 0; reg < I915_MAX_CONSTANT; reg++) {
295 if (ifs->constant_flags[reg] == I915_CONSTFLAG_USER)
298 if (!(ifs->constant_flags[reg] & (1 << idx)) ||
299 ifs->constants[reg][idx] == c0) {
300 ifs->constants[reg][idx] = c0;
301 ifs->constant_flags[reg] |= 1 << idx;
302 if (reg + 1 > ifs->num_constants)
303 ifs->num_constants = reg + 1;
304 return swizzle(UREG(REG_TYPE_CONST, reg), idx, ZERO, ZERO, ONE);
317 unsigned reg, idx;
331 for (reg = 0; reg < I915_MAX_CONSTANT; reg++) {
332 if (ifs->constant_flags[reg] == 0xf ||
333 ifs->constant_flags[reg] == I915_CONSTFLAG_USER)
336 if (!(ifs->constant_flags[reg] & (3 << idx))) {
337 ifs->constants[reg][idx + 0] = c0;
338 ifs->constants[reg][idx + 1] = c1;
339 ifs->constant_flags[reg] |= 3 << idx;
340 if (reg + 1 > ifs->num_constants)
341 ifs->num_constants = reg + 1;
342 return swizzle(UREG(REG_TYPE_CONST, reg), idx, idx + 1, ZERO, ONE);
356 unsigned reg;
360 for (reg = 0; reg < I915_MAX_CONSTANT; reg++) {
361 if (ifs->constant_flags[reg] == 0xf &&
362 ifs->constants[reg][0] == c0 &&
363 ifs->constants[reg][1] == c1 &&
364 ifs->constants[reg][2] == c2 &&
365 ifs->constants[reg][3] == c3) {
366 return UREG(REG_TYPE_CONST, reg);
368 else if (ifs->constant_flags[reg] == 0) {
370 ifs->constants[reg][0] = c0;
371 ifs->constants[reg][1] = c1;
372 ifs->constants[reg][2] = c2;
373 ifs->constants[reg][3] = c3;
374 ifs->constant_flags[reg] = 0xf;
375 if (reg + 1 > ifs->num_constants)
376 ifs->num_constants = reg + 1;
377 return UREG(REG_TYPE_CONST, reg);