From: Christoph Bumiller Date: Sun, 24 Feb 2013 17:36:21 +0000 (+0100) Subject: nv50/ir: fix comparison of system values X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc30ce8160a9ed4d2ed1a024c659d5cd1ec27ee2;p=mesa.git nv50/ir: fix comparison of system values --- 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; }