diff options
author | Ilia Mirkin <[email protected]> | 2017-06-24 17:08:11 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-06-26 20:24:19 -0400 |
commit | 55a8c117051406ff80166d365e832ff99b90d1a8 (patch) | |
tree | 846dab8c0a3c62bac85dbe4a93700a66a7d05e60 /src/gallium/drivers/nouveau | |
parent | c12f8305a8ae4fd5d78a9ab8bbda790a711d5bed (diff) |
nv50/ir: VFETCH is also considered a load for MemoryOpt
This has no effect since in practice this will only play for
memory-backed files, for which VFETCH will never happen.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 5dac2f64f0a..c6dbd4fead4 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -2641,7 +2641,7 @@ MemoryOpt::findRecord(const Instruction *insn, bool load, bool& isAdj) const Record *it = load ? loads[sym->reg.file] : stores[sym->reg.file]; for (; it; it = it->next) { - if (it->locked && insn->op != OP_LOAD) + if (it->locked && insn->op != OP_LOAD && insn->op != OP_VFETCH) continue; if ((it->offset >> 4) != (sym->reg.data.offset >> 4) || it->rel[0] != insn->getIndirect(0, 0) || |