nv50: be more cautious about using reg_instance
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 14 Dec 2009 17:39:13 +0000 (18:39 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 14 Dec 2009 17:39:13 +0000 (18:39 +0100)
commit2677f199a547f6e44d964b8c34dd7f60d9523ab2
tree91edff4312ba23e5561a615db5cb24da107e8dd2
parentc14be63c5647e4406a0a4d80570a4def593b551b
nv50: be more cautious about using reg_instance

Trying to free part of nv50_pc->reg_instances[] for an
nv50_reg representing an indirect constant resulted in
a segmentation fault.
src/gallium/drivers/nv50/nv50_program.c