diff options
author | Karol Herbst <[email protected]> | 2018-02-20 00:45:14 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2018-02-21 11:12:45 +0100 |
commit | 7319311a504c06890181044668c8d01cf5ddd322 (patch) | |
tree | 71c1b51f66c7207044f59a7e71af4075db5acd85 /src/gallium/drivers/nouveau/codegen | |
parent | a6accad68fbeccc7dad2c2d6343bcdb4751e90b3 (diff) |
nvir/nvc0: fix legalizing of ld unlock c0[0x10000]
We have to increase the file index also for 0x10000 not just for values
greater than 0x10000.
Fixes: 37b67db6ae34fb6586d640a7a1b6232f091dd812
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp index 5e9ffc0d463..29f674b4514 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp @@ -745,7 +745,7 @@ NVC0LegalizePostRA::visit(BasicBlock *bb) } else if (i->op == OP_LOAD && i->subOp == NV50_IR_SUBOP_LDC_IS) { int offset = i->src(0).get()->reg.data.offset; - if (abs(offset) > 0x10000) + if (abs(offset) >= 0x10000) i->src(0).get()->reg.fileIndex += offset >> 16; i->src(0).get()->reg.data.offset = (int)(short)offset; } else { |