mesa: Add a helper _mesa_compute_rgba2base2rgba_component_mapping
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 26 Nov 2014 08:39:35 +0000 (09:39 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 12 Jan 2015 10:20:28 +0000 (11:20 +0100)
commitb1f0229140a66a36de63408b8a3eb45e11e43710
treeaee7aa6732d8b8a6763458af7b29de598e24e647
parent3171a09c2539a3d08196d6a4cb91ad6276f9383d
mesa: Add a helper _mesa_compute_rgba2base2rgba_component_mapping

This will come in handy when callers of _mesa_format_convert need
to compute the rebase swizzle parameter to use.

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