summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-08-13 13:41:22 -0700
committerEric Anholt <[email protected]>2014-09-04 17:00:54 -0700
commit4bca922878a4d433077d21d4918b1db71b3a15f7 (patch)
treeebbab6a23eed9f16c98645c8061813d962bd1eae /src/gallium/drivers/vc4/vc4_qir.c
parent23e20f4687269f795e912a05bf12baaa94d0dd5a (diff)
vc4: Merge qcompile and tgsi_to_qir
The split between these two didn't make much sense. I'm going to want the chance to look at uniform contents in optimization passes, and the QPU emit I think is going to end up rewriting the uniforms stream.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index a017a72c14b..fc54cdb9092 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -203,7 +203,7 @@ qir_dump_inst(struct qinst *inst)
}
void
-qir_dump(struct qcompile *c)
+qir_dump(struct vc4_compile *c)
{
struct simple_node *node;
@@ -215,7 +215,7 @@ qir_dump(struct qcompile *c)
}
struct qreg
-qir_get_temp(struct qcompile *c)
+qir_get_temp(struct vc4_compile *c)
{
struct qreg reg;
@@ -260,7 +260,7 @@ qir_inst4(enum qop op, struct qreg dst,
}
void
-qir_emit(struct qcompile *c, struct qinst *inst)
+qir_emit(struct vc4_compile *c, struct qinst *inst)
{
insert_at_tail(&c->instructions, &inst->link);
}
@@ -271,10 +271,10 @@ qir_reg_equals(struct qreg a, struct qreg b)
return a.file == b.file && a.index == b.index;
}
-struct qcompile *
+struct vc4_compile *
qir_compile_init(void)
{
- struct qcompile *c = CALLOC_STRUCT(qcompile);
+ struct vc4_compile *c = CALLOC_STRUCT(vc4_compile);
make_empty_list(&c->instructions);
@@ -282,7 +282,7 @@ qir_compile_init(void)
}
void
-qir_compile_destroy(struct qcompile *c)
+qir_compile_destroy(struct vc4_compile *c)
{
free(c);
}
@@ -313,7 +313,7 @@ qir_get_stage_name(enum qstage stage)
} while (0)
void
-qir_optimize(struct qcompile *c)
+qir_optimize(struct vc4_compile *c)
{
bool print_opt_debug = false;
int pass = 1;