nv30: fix rare issue with fp unbinding not finding the bufctx
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 27 Dec 2018 04:01:21 +0000 (23:01 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 31 Dec 2018 00:44:43 +0000 (19:44 -0500)
commitb34cfd474961bef6cb245e02a6dba7db0cf12ce6
tree614e1584c1abbdd23f04658b39307eb171e57317
parentef3eac954574d630593012369ba309210158b760
nv30: fix rare issue with fp unbinding not finding the bufctx

If the last-active context gets deleted, the pushbuf doesn't have a
bufctx to reference. Then there could be a sequence of binds which would
trigger a reset on that bin before validation was done. Instead we just
pass in the bufctx in question directly.

All other instances of PUSH_RESET happen strictly after a validation is
run.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102349
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv30/nv30_fragprog.c