nv50/ir: fix comparison of system values
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 24 Feb 2013 17:36:21 +0000 (18:36 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 12 Mar 2013 11:55:34 +0000 (12:55 +0100)
src/gallium/drivers/nv50/codegen/nv50_ir.cpp

index 4d76011aaeb036f5cf21cbef93f1176a10576d99..ec35c51c5c44f6b4ac44d3023ec4e2a3dd11bfc4 100644 (file)
@@ -546,6 +546,9 @@ Symbol::equals(const Value *that, bool strict) const
    if (this->baseSym != that->asSym()->baseSym)
       return false;
 
+   if (reg.file == FILE_SYSTEM_VALUE)
+      return (this->reg.data.sv.sv    == that->reg.data.sv.sv &&
+              this->reg.data.sv.index == that->reg.data.sv.index);
    return this->reg.data.offset == that->reg.data.offset;
 }