projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb2c4b6
)
freedreno/ir3: fix crash in RA
author
Rob Clark
<robclark@freedesktop.org>
Fri, 26 Jun 2015 18:32:08 +0000
(14:32 -0400)
committer
Rob Clark
<robclark@freedesktop.org>
Tue, 30 Jun 2015 16:13:44 +0000
(12:13 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_ra.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/ir3/ir3_ra.c
b/src/gallium/drivers/freedreno/ir3/ir3_ra.c
index
0436e01
..
ee610c7
100644
(file)
--- a/
src/gallium/drivers/freedreno/ir3/ir3_ra.c
+++ b/
src/gallium/drivers/freedreno/ir3/ir3_ra.c
@@
-403,6
+403,7
@@
get_definer(struct ir3_instruction *instr, int *sz, int *off)
* the phi, so we don't need to chase definers
*/
struct ir3_register *src;
+ struct ir3_instruction *dd = d;
/* note: don't use foreach_ssa_src as this gets called once
* while assigning regs (which clears SSA flag)
@@
-410,9
+411,11
@@
get_definer(struct ir3_instruction *instr, int *sz, int *off)
foreach_src(src, d) {
if (!src->instr)
continue;
- if (src->instr->ip < d->ip)
- d = src->instr;
+ if (src->instr->ip < d
d
->ip)
+ d
d
= src->instr;
}
+
+ d = dd;
}
if (is_meta(d) && (d->opc == OPC_META_FO)) {