diff options
author | Iago Toral Quiroga <itoral@igalia.com> | 2014-11-26 09:39:35 +0100 |
---|---|---|
committer | Iago Toral Quiroga <itoral@igalia.com> | 2015-01-12 11:20:28 +0100 |
commit | b1f0229140a66a36de63408b8a3eb45e11e43710 (patch) | |
tree | aee7aa6732d8b8a6763458af7b29de598e24e647 /src/mesa/main/format_utils.h | |
parent | 3171a09c2539a3d08196d6a4cb91ad6276f9383d (diff) | |
download | external_mesa3d-b1f0229140a66a36de63408b8a3eb45e11e43710.zip external_mesa3d-b1f0229140a66a36de63408b8a3eb45e11e43710.tar.gz external_mesa3d-b1f0229140a66a36de63408b8a3eb45e11e43710.tar.bz2 |
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>
Diffstat (limited to 'src/mesa/main/format_utils.h')
-rw-r--r-- | src/mesa/main/format_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/format_utils.h b/src/mesa/main/format_utils.h index ae7926e..48e4467 100644 --- a/src/mesa/main/format_utils.h +++ b/src/mesa/main/format_utils.h @@ -212,6 +212,9 @@ _mesa_swizzle_and_convert(void *dst, GLenum dst_type, int num_dst_channels, const void *src, GLenum src_type, int num_src_channels, const uint8_t swizzle[4], bool normalized, int count); +bool +_mesa_compute_rgba2base2rgba_component_mapping(GLenum baseFormat, uint8_t *map); + void _mesa_format_convert(void *void_dst, uint32_t dst_format, size_t dst_stride, void *void_src, uint32_t src_format, size_t src_stride, |