nvc0/ir: fix ubo max clamp, reset file index
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 9 Feb 2017 20:35:51 +0000 (15:35 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 9 Feb 2017 20:50:58 +0000 (15:50 -0500)
commitc95f821cb4286f8163bfdf341be2b0940011585a
tree0ddcbed85df513f6e9a4940451399d6f9fee107e
parente4a698cb97224ef22469b0d8fd703cf164d380f1
nvc0/ir: fix ubo max clamp, reset file index

We just increased the max UBO, so we should also increase the clamp that
we do for robustness. Similarly, as we're including the fileIndex in the
new indirect value, we should reset fileIndex to 0 so that it is not
added in a second time.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp