llvmpipe: keep copy of framebuffer state in setup context
authorKeith Whitwell <keithw@vmware.com>
Thu, 17 Dec 2009 11:29:37 +0000 (11:29 +0000)
committerKeith Whitwell <keithw@vmware.com>
Thu, 17 Dec 2009 11:29:37 +0000 (11:29 +0000)
commit7f2ba80025e4b534db72427a206e6a542fc2f520
tree18384be5093551559be2b0eca5299ac235f6aa28
parentab9438193083b7f9a3180cb9cea45e269131048a
llvmpipe: keep copy of framebuffer state in setup context

Avoids crashes when first frame is rendered before window is mapped.
Avoids potential issue where fb state is changed before setup context is
flushed.
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup_context.h
src/gallium/drivers/llvmpipe/lp_state_surface.c