nvc0: keep track of PGRAPH state in nvc0_screen
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 8 May 2015 04:26:24 +0000 (00:26 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 9 May 2015 17:36:23 +0000 (13:36 -0400)
commite9b1ea29bf1e8f09e83bd6358d0d2068053f09d4
tree5f6d3ba792f03316dcccd691e67e6535674a0e32
parentf617029db3f8786d94c64f1a73c42b89b6d261fa
nvc0: keep track of PGRAPH state in nvc0_screen

See identical commit for nv50. Destroying the current context and then
creating a new one or switching to another existing context would cause
the "current" state to not be properly initialized, so we save it off in
the screen.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nvc0/nvc0_context.c
src/gallium/drivers/nouveau/nvc0/nvc0_context.h
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c