diff options
author | Iago Toral Quiroga <[email protected]> | 2014-11-27 08:31:00 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2015-01-12 11:20:29 +0100 |
commit | ea79ab3e8c3766c17d3080e846b815d48c249186 (patch) | |
tree | 61288ca44b2487d290dfcbc776d7d5a612fe9821 /src/mesa/main/format_utils.h | |
parent | a55f67fcb064b4ed3019259a711b5be07f4e72ff (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/format_utils.h')
-rw-r--r-- | src/mesa/main/format_utils.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/main/format_utils.h b/src/mesa/main/format_utils.h index 48e4467f5e9..b588695de0c 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 |