OK, one more time. Simplify the state-backup system by just storing the full
authorEric Anholt <anholt@FreeBSD.org>
Thu, 30 Sep 2004 00:08:05 +0000 (00:08 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Thu, 30 Sep 2004 00:08:05 +0000 (00:08 +0000)
commit7a086dc05e665a78f7e9d069aa4fc70e844b8988
treef7ef0c3e7354f494cea48f10ae86810dd442c63f
parentfa569c0a73576d3cca7cd1d0363064be099a6a22
OK, one more time.  Simplify the state-backup system by just storing the full
state in a ready-to-emit cmdbuf, which avoids the issue Nicolai Haehnle reported
where the check() could return differently during backup-and-emit than it should
have if it were called at the right time.  Move the lit emission before most of
the TCL state emission on r200, which fixes neverball issues.

Tested with: r100/r200 with neverball, tuxracer, chromium, quake3, ipers
13 files changed:
src/mesa/drivers/dri/r200/r200_cmdbuf.c
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/r200/r200_context.h
src/mesa/drivers/dri/r200/r200_ioctl.c
src/mesa/drivers/dri/r200/r200_ioctl.h
src/mesa/drivers/dri/r200/r200_lock.h
src/mesa/drivers/dri/r200/r200_state_init.c
src/mesa/drivers/dri/radeon/radeon_context.c
src/mesa/drivers/dri/radeon/radeon_context.h
src/mesa/drivers/dri/radeon/radeon_ioctl.c
src/mesa/drivers/dri/radeon/radeon_ioctl.h
src/mesa/drivers/dri/radeon/radeon_lock.h
src/mesa/drivers/dri/radeon/radeon_state_init.c