nv50/ir: rebase indirect temp arrays to 0, so that we use less lmem space
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 14 Jan 2016 06:09:25 +0000 (01:09 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 15 Jan 2016 01:14:01 +0000 (20:14 -0500)
commitfffb559129dd1ae978ec7f9ba30b4ae97a5ebbcc
treefbc89ccd5b54a3de3a0217324822da51a7a5e0b4
parente231f59b6d5b12035a8041305c3a732d39a39c19
nv50/ir: rebase indirect temp arrays to 0, so that we use less lmem space

Reduces local memory usage in a lot of Metro 2033 Redux and a few KSP
shaders:

total local used in shared programs   : 54116 -> 30372 (-43.88%)

Probably modest advantage to execution, but it's an imporant
prerequisite to dropping some of the TGSI optimizations done by the
state tracker.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp