main/texstore: Split texture storage into three functions
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Jul 2014 19:16:03 +0000 (12:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Aug 2014 17:56:17 +0000 (10:56 -0700)
commit4c8fc268358034c12b9679aad8e113ce96ad57a7
tree69a30d0716116b7f2a219c391009b083e3974a25
parent6b912dc12918c93fe729d3785e985132e9a81f51
main/texstore: Split texture storage into three functions

This commit splits the texture storage into three functions:
texstore_depth_stencil, texstore_compressed, and texstore_rgba.  Right now
this split seems artificial since we just have one function pointer per
format and there is no difference between these three categories.  However,
this split makes it much easier to write a more general function upload
path for one of these categories than the current function pointers.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texstore.c