mesa: Expose compute_component_mapping as _mesa_compute_component_mapping
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 6 Nov 2014 12:19:45 +0000 (13:19 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 12 Jan 2015 10:20:28 +0000 (11:20 +0100)
commit1aaed753301a4c0d39173616088db66231e7298d
tree566c78efbc8658d4f3c25e63c139df22da22a400
parentdeca11c0dc127caa7f8643069310ea6e0a5aea5c
mesa: Expose compute_component_mapping as _mesa_compute_component_mapping

This is necessary to handle conversions between array types where
the driver does not support the dst format requested by the client and
chooses a different format instead.

We will need this in _mesa_format_convert, so move it to format_utils.c,
prefix it with '_mesa_' and make it available to other files.

v2:
  - Move _mesa_compute_component_mapping to glformats

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