mesa: Use _mesa_format_convert to implement texstore_rgba.
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 15 Oct 2014 11:42:11 +0000 (13:42 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 12 Jan 2015 10:20:29 +0000 (11:20 +0100)
commit8ec6534b266549cdc2798e2523bf6753924f6cde
tree768e937afc90fbb4fe44c3f7259d069ac008bffc
parent2ec8718dae126e6699640de37cbd950878635cbd
mesa: Use _mesa_format_convert to implement texstore_rgba.

Notice that _mesa_format_convert does not handle byte-swapping scenarios,
GL_COLOR_INDEX or MESA_FORMAT_YCBCR(_REV), so these must be handled
separately.

Also, remove all the code that goes unused after using _mesa_format_convert.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/main/texstore.c