nv30: reset fragprog bufctx at bind time
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 29 Jun 2015 06:38:38 +0000 (02:38 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 30 Jun 2015 03:03:27 +0000 (23:03 -0400)
commitbad107f2ec24b16118f4d99c54b853277b1a966d
tree86b22b1008947d0673267be9f5b7904113e6b047
parentb875198f1f0b7c90bcb22511c0050b06d8a33ac4
nv30: reset fragprog bufctx at bind time

A clear will do a partial validate, which will in turn reference all the
buffers in the bufctx again. However the fragprog last validated might
have already been deleted. So reset the bufctx when updating state.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv30/nv30_fragprog.c