nvc0/ir: fix TargetNVC0::insnCanLoadOffset()
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 28 Jun 2018 13:26:33 +0000 (14:26 +0100)
committerKarol Herbst <kherbst@redhat.com>
Thu, 28 Jun 2018 16:22:06 +0000 (18:22 +0200)
commit6bb0f87c6003e1d80aa79f6a591620aecc7b031d
treee789d925d8e16e70e6751f2e130ccb17c0171a35
parent5b7d4f9428af0dd8035c9483abd3492494062a8a
nvc0/ir: fix TargetNVC0::insnCanLoadOffset()

Previously, TargetNVC0::insnCanLoadOffset() returned whether the offset
could be set to a specific value. The IndirectPropagation pass expected
it to return whether the offset could be increased by a specific value,
which is what TargetNV50::insnCanLoadOffset() does.

Fixes: 37b67db6ae34fb6586d640a7a1b6232f091dd812
("nvc0/ir: be careful about propagating very large offsets into const load")

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp