gm107/ir: do not combine CONST loads
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 25 Nov 2016 11:17:56 +0000 (12:17 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 26 Nov 2016 18:05:08 +0000 (19:05 +0100)
commit948cce01964c1dd7365c49381f9a6cf1b6e5f7f9
tree6ef9cdbec7eac193ff2c33826a9667b81f4c4975
parentfa6bbb5c00138506bd8280b22249a0c0b1d9a2ec
gm107/ir: do not combine CONST loads

This will allow to use MOV instead of LD. The main advantage is
that MOV doesn't require a read dependency barrier while LD does,
and so this will both reduce barriers pressure and the number of
stall counts needed to read data from constant memory.

This is currently only for user uniform accesses. I should do
something similar when loading from the driver constant buffer
but it seems like a bit tricky to handle for now.

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