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 (cherry picked from commit e9b1ea29)
Showing
- src/gallium/drivers/nouveau/nvc0/nvc0_context.c 6 additions, 1 deletionsrc/gallium/drivers/nouveau/nvc0/nvc0_context.c
- src/gallium/drivers/nouveau/nvc0/nvc0_context.h 1 addition, 23 deletionssrc/gallium/drivers/nouveau/nvc0/nvc0_context.h
- src/gallium/drivers/nouveau/nvc0/nvc0_screen.h 25 additions, 0 deletionssrc/gallium/drivers/nouveau/nvc0/nvc0_screen.h
- src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c 2 additions, 0 deletionssrc/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c
Loading
Please register or sign in to comment