diff options
author | Christoph Bumiller <[email protected]> | 2013-02-24 18:36:21 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-03-12 12:55:34 +0100 |
commit | cc30ce8160a9ed4d2ed1a024c659d5cd1ec27ee2 (patch) | |
tree | 37a89b66f5950b9b244210f4d25562f81023fe77 /src/gallium/drivers | |
parent | 4ddfdcea0409dd3fe880a17fe3f5ec1d5d541758 (diff) |
nv50/ir: fix comparison of system values
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir.cpp | 3 |
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; } |