nv50/ir: avoid array overrun when checking for supported mods
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 6 Sep 2014 15:41:36 +0000 (11:41 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 9 Sep 2014 00:06:12 +0000 (20:06 -0400)
commit874a9396c5adfdcff63139bf6ababb55c1253402
treecd11417f2d36adc087a23c497b7bfb7c5ff78279
parent64c5aeaa94d02fecbe169d830960d1dc841dbc6b
nv50/ir: avoid array overrun when checking for supported mods

Reported by Coverity

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp