nouveau: codegen: LOAD: Do not call fetchSrc(1) if the address is immediate
authorHans de Goede <hdegoede@redhat.com>
Thu, 21 Apr 2016 11:51:14 +0000 (13:51 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 27 Apr 2016 14:11:48 +0000 (16:11 +0200)
commit90f45357abd4f0007aa3f047464b43188fed4ef1
tree81c444910d4c72704ee8182d0712d353401e896b
parent1958397a587919e4a3ec83441c3717813ba2f18b
nouveau: codegen: LOAD: Do not call fetchSrc(1) if the address is immediate

"off" later gets set to NULL when the address is immediate, so move the
fetchSrc(1) call to the non-immediate branch of the if-else. This brings
handleLOAD's offset handling inline with how it is done in handleSTORE.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp