gm107/ir: optimize 32-bit CONST load to mov
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 25 Nov 2016 11:25:58 +0000 (12:25 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 26 Nov 2016 18:05:11 +0000 (19:05 +0100)
commit8fdb800bdaa28f4ca563829f70e8b187f867c0ac
tree8249cbff9d94cc12415a245abf060818957fe2a9
parent948cce01964c1dd7365c49381f9a6cf1b6e5f7f9
gm107/ir: optimize 32-bit CONST load to mov

This is not allowed for indirect accesses because the source
GPR might be erased by a subsequent instruction (WaR hazard)
if we don't emit a read dep bar.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h