nv50,nvc0: avoid reading out of bounds when getting bogus so info
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 19 Oct 2016 04:05:26 +0000 (00:05 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 20 Oct 2016 01:02:01 +0000 (21:02 -0400)
commit313fba5ee1de9416930e45da8aff63a24763940b
tree16a72761bb195d1e14500adc6168d4b40f9eb894
parent8bf7717e1f84d180f42fb665772878d3b6d27459
nv50,nvc0: avoid reading out of bounds when getting bogus so info

The state tracker tries to attach the info to the wrong shader. This is
easy enough to protect against.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_program.c
src/gallium/drivers/nouveau/nvc0/nvc0_program.c