gallium: Add texture usage flags, special-case allocation of display targets
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 2 May 2008 15:46:31 +0000 (16:46 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 2 May 2008 15:46:31 +0000 (16:46 +0100)
commita73ae3d5eb8419feab5aea26573aa41b72f941eb
tree74fa3e6004be0ef5d266680bd57c2fccec521a4e
parent4a159132082429d5492f5298c2ccb0df551c9f65
gallium: Add texture usage flags, special-case allocation of display targets

For many envirionments it's necessary to allocate display targets
in a window-system friendly manner.  Add facilities so that a driver
can tell if a texture is likely to be used to generate a display surface
and if use special allocation paths if necessary.

Hook up softpipe to call into the winsys->surface_alloc_storage()
routine in this case, though we probably want to change that interface
slightly also.
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_texture.h
src/gallium/include/pipe/p_state.h
src/mesa/state_tracker/st_atom_pixeltransfer.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h