summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_utils.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2014-11-27 08:31:00 +0100
committerIago Toral Quiroga <itoral@igalia.com>2015-01-12 11:20:29 +0100
commitea79ab3e8c3766c17d3080e846b815d48c249186 (patch)
tree61288ca44b2487d290dfcbc776d7d5a612fe9821 /src/mesa/main/format_utils.h
parenta55f67fcb064b4ed3019259a711b5be07f4e72ff (diff)
downloadexternal_mesa3d-ea79ab3e8c3766c17d3080e846b815d48c249186.zip
external_mesa3d-ea79ab3e8c3766c17d3080e846b815d48c249186.tar.gz
external_mesa3d-ea79ab3e8c3766c17d3080e846b815d48c249186.tar.bz2
mesa: Let _mesa_swizzle_and_convert take array format types instead of GL types
In the future we would like to have a format conversion library that is independent of GL so we can share it with Gallium. This is a step in that direction. 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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/main/format_utils.h b/src/mesa/main/format_utils.h
index 48e4467..b588695 100644
--- a/src/mesa/main/format_utils.h
+++ b/src/mesa/main/format_utils.h
@@ -208,8 +208,12 @@ _mesa_format_to_array(mesa_format, GLenum *type, int *num_components,
uint8_t swizzle[4], bool *normalized);
void
-_mesa_swizzle_and_convert(void *dst, GLenum dst_type, int num_dst_channels,
- const void *src, GLenum src_type, int num_src_channels,
+_mesa_swizzle_and_convert(void *dst,
+ enum mesa_array_format_datatype dst_type,
+ int num_dst_channels,
+ const void *src,
+ enum mesa_array_format_datatype src_type,
+ int num_src_channels,
const uint8_t swizzle[4], bool normalized, int count);
bool