nv50/ir: fix memory value equality check
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 14 Oct 2011 17:49:22 +0000 (19:49 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 21 Oct 2011 21:00:38 +0000 (23:00 +0200)
src/gallium/drivers/nv50/codegen/nv50_ir.cpp

index 3cd5038e499de36835b4cbb9582ec78c6bf219d7..23fb3bf847813b4f164ccec7733096c5a73aa8dd 100644 (file)
@@ -508,7 +508,7 @@ ImmediateValue::equals(const Value *that, bool strict) const
 bool
 Symbol::equals(const Value *that, bool strict) const
 {
-   if (this->reg.file != that->reg.file)
+   if (reg.file != that->reg.file || reg.fileIndex != that->reg.fileIndex)
       return false;
    assert(that->asSym());