projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vc4: Don't forget to set the range when scalarizing our uniforms.
[mesa.git]
/
src
/
gallium
/
drivers
/
vc4
/
vc4_opt_constant_folding.c
diff --git
a/src/gallium/drivers/vc4/vc4_opt_constant_folding.c
b/src/gallium/drivers/vc4/vc4_opt_constant_folding.c
index 15ec9f0726071022dc6df204806da65ad9c0401b..de642d46582211c11607efdea03f39a201b907e3 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_opt_constant_folding.c
+++ b/
src/gallium/drivers/vc4/vc4_opt_constant_folding.c
@@
-58,7
+58,7
@@
dump_to(struct vc4_compile *c, struct qinst *inst)
static bool
constant_fold(struct vc4_compile *c, struct qinst *inst)
{
static bool
constant_fold(struct vc4_compile *c, struct qinst *inst)
{
- int nsrc = qir_get_
op_nsrc(inst->op
);
+ int nsrc = qir_get_
nsrc(inst
);
uint32_t ui[nsrc];
for (int i = 0; i < nsrc; i++) {
uint32_t ui[nsrc];
for (int i = 0; i < nsrc; i++) {
@@
-99,7
+99,7
@@
qir_opt_constant_folding(struct vc4_compile *c)
{
bool progress = false;
{
bool progress = false;
-
list_for_each_entry(struct qinst, inst, &c->instructions, link
) {
+
qir_for_each_inst_inorder(inst, c
) {
if (constant_fold(c, inst))
progress = true;
}
if (constant_fold(c, inst))
progress = true;
}