nv50: keep track of PGRAPH state in nv50_screen
Normally this is kept in nv50_context, and on switching the active context, the state is copied from the previous context. However when the last context is destroyed, this is lost, and a new context might later be created. When the currently-active context is destroyed, save its state in the screen, and restore it when setting the current context. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90363 Reported-by:Matteo Bruni <matteo.mystral@gmail.com> Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Tested-by:
Matteo Bruni <matteo.mystral@gmail.com> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit f617029d)
Showing
- src/gallium/drivers/nouveau/nv50/nv50_context.c 9 additions, 2 deletionssrc/gallium/drivers/nouveau/nv50/nv50_context.c
- src/gallium/drivers/nouveau/nv50/nv50_context.h 1 addition, 28 deletionssrc/gallium/drivers/nouveau/nv50/nv50_context.h
- src/gallium/drivers/nouveau/nv50/nv50_screen.h 24 additions, 0 deletionssrc/gallium/drivers/nouveau/nv50/nv50_screen.h
- src/gallium/drivers/nouveau/nv50/nv50_state_validate.c 2 additions, 0 deletionssrc/gallium/drivers/nouveau/nv50/nv50_state_validate.c
Loading
Please register or sign in to comment