summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
index 4d76011aaeb..ec35c51c5c4 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
@@ -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;
}