projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee69cfd
)
vc4: Disable vc4_opt_vpm in the presence of control flow.
author
Eric Anholt
<eric@anholt.net>
Sat, 9 Jul 2016 00:06:18 +0000
(17:06 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 14 Jul 2016 06:54:15 +0000
(23:54 -0700)
It's a really valuable pass currently, but it will be a mess to rewrite
for control flow. For now, just disable it if we have multiple blocks
present.
src/gallium/drivers/vc4/vc4_opt_vpm.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_opt_vpm.c
b/src/gallium/drivers/vc4/vc4_opt_vpm.c
index e2249bd048eb1d512bb7f4f7463c9aefd363bbfc..34ea33635117c1e534326067680653498f079c98 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_opt_vpm.c
+++ b/
src/gallium/drivers/vc4/vc4_opt_vpm.c
@@
-38,6
+38,11
@@
qir_opt_vpm(struct vc4_compile *c)
if (c->stage == QSTAGE_FRAG)
return false;
+ /* For now, only do this pass when we don't have control flow. */
+ struct qblock *block = qir_entry_block(c);
+ if (block != qir_exit_block(c))
+ return false;
+
bool progress = false;
struct qinst *vpm_writes[64] = { 0 };
uint32_t use_count[c->num_temps];