nvc0/ir: clamp the UBO index for compute on Kepler
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Jun 2016 15:13:28 +0000 (17:13 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Jun 2016 18:12:48 +0000 (20:12 +0200)
commit7f257abc1bdd153b3981efffc3f201e1ea5fe843
tree62c7db30d50cbba8e761f170d2f34369a9e4eb75
parent6e1b12c7881fe663cb500cb2f7374f4862bae179
nvc0/ir: clamp the UBO index for compute on Kepler

We already check that the address is not "too far", but we should also
clamp the UBO index in order to avoid looking at the wrong place in the
driver cb. This is a pretty rare situation though.

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