diff options
Diffstat (limited to 'src/gallium/drivers/freedreno/ir.c')
-rw-r--r-- | src/gallium/drivers/freedreno/ir.c | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/gallium/drivers/freedreno/ir.c b/src/gallium/drivers/freedreno/ir.c index 4c605de9462..9aa931bc9da 100644 --- a/src/gallium/drivers/freedreno/ir.c +++ b/src/gallium/drivers/freedreno/ir.c @@ -189,73 +189,6 @@ fail: } -struct ir_attribute * ir_attribute_create(struct ir_shader *shader, - int rstart, int num, const char *name) -{ - struct ir_attribute *a = ir_alloc(shader, sizeof(struct ir_attribute)); - DEBUG_MSG("R%d-R%d: %s", rstart, rstart + num - 1, name); - a->name = ir_strdup(shader, name); - a->rstart = rstart; - a->num = num; - assert(shader->attributes_count < ARRAY_SIZE(shader->attributes)); - shader->attributes[shader->attributes_count++] = a; - return a; -} - -struct ir_const * ir_const_create(struct ir_shader *shader, - int cstart, float v0, float v1, float v2, float v3) -{ - struct ir_const *c = ir_alloc(shader, sizeof(struct ir_const)); - DEBUG_MSG("C%d: %f, %f, %f, %f", cstart, v0, v1, v2, v3); - c->val[0] = v0; - c->val[1] = v1; - c->val[2] = v2; - c->val[3] = v3; - c->cstart = cstart; - assert(shader->consts_count < ARRAY_SIZE(shader->consts)); - shader->consts[shader->consts_count++] = c; - return c; -} - -struct ir_sampler * ir_sampler_create(struct ir_shader *shader, - int idx, const char *name) -{ - struct ir_sampler *s = ir_alloc(shader, sizeof(struct ir_sampler)); - DEBUG_MSG("CONST(%d): %s", idx, name); - s->name = ir_strdup(shader, name); - s->idx = idx; - assert(shader->samplers_count < ARRAY_SIZE(shader->samplers)); - shader->samplers[shader->samplers_count++] = s; - return s; -} - -struct ir_uniform * ir_uniform_create(struct ir_shader *shader, - int cstart, int num, const char *name) -{ - struct ir_uniform *u = ir_alloc(shader, sizeof(struct ir_uniform)); - DEBUG_MSG("C%d-C%d: %s", cstart, cstart + num - 1, name); - u->name = ir_strdup(shader, name); - u->cstart = cstart; - u->num = num; - assert(shader->uniforms_count < ARRAY_SIZE(shader->uniforms)); - shader->uniforms[shader->uniforms_count++] = u; - return u; -} - -struct ir_varying * ir_varying_create(struct ir_shader *shader, - int rstart, int num, const char *name) -{ - struct ir_varying *v = ir_alloc(shader, sizeof(struct ir_varying)); - DEBUG_MSG("R%d-R%d: %s", rstart, rstart + num - 1, name); - v->name = ir_strdup(shader, name); - v->rstart = rstart; - v->num = num; - assert(shader->varyings_count < ARRAY_SIZE(shader->varyings)); - shader->varyings[shader->varyings_count++] = v; - return v; -} - - struct ir_cf * ir_cf_create(struct ir_shader *shader, instr_cf_opc_t cf_type) { struct ir_cf *cf = ir_alloc(shader, sizeof(struct ir_cf)); |