mesa: Generalize TexStorage allocator between swrast and intel.
authorEric Anholt <eric@anholt.net>
Sat, 13 Apr 2013 08:37:35 +0000 (01:37 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 21 Apr 2013 19:28:04 +0000 (12:28 -0700)
commit1842dd08b83269816fe8eb8f2dcc1252f606fe48
tree61d1cca575fe3be59af5ad5c79d0a45e85479701
parente86170c2b88f9970a124479bbf47b5a7cd43d628
mesa: Generalize TexStorage allocator between swrast and intel.

This should be reusable for other non-gallium drivers, so we can make the
extension always be available.

v2: Add a more detailed comment than the old function had (recommended
    by Brian).

Reviewed-by: Brian Paul <brianp@vmware.com> (v1)
src/mesa/drivers/common/driverfuncs.c
src/mesa/drivers/dri/intel/intel_tex.c
src/mesa/main/texstorage.c
src/mesa/main/texstorage.h
src/mesa/swrast/s_texture.c
src/mesa/swrast/swrast.h