r300g: fix crash when flushing ZMASK
authorMarek Olšák <maraeo@gmail.com>
Sun, 9 Jan 2011 04:34:36 +0000 (05:34 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sun, 9 Jan 2011 05:14:23 +0000 (06:14 +0100)
commit3332229b3ba7a183a9f120ae4bbf9865e96df110
tree244c11039fcd1b48d10c711f4b5534faa2926309
parent69191d41231b95af7565e32393c5487163859d7e
r300g: fix crash when flushing ZMASK

https://bugs.freedesktop.org/show_bug.cgi?id=32912

The fix is to call update_derived_state before user buffer uploads.
I've also moved some code around.

Unfortunately, there are still some ZMASK-related bugs which cause
misrendering, i.e. flushing doesn't always work and glean/fbo fails.
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_state_derived.h [deleted file]