From cc30ce8160a9ed4d2ed1a024c659d5cd1ec27ee2 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 24 Feb 2013 18:36:21 +0100 Subject: [PATCH] nv50/ir: fix comparison of system values --- src/gallium/drivers/nv50/codegen/nv50_ir.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.30.2