From 6fb3caecc605008d2dbd3eb729ef34dedfeb094f Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 27 Dec 2014 14:14:50 +0800 Subject: include: fix typedefs Use what was in the upstream header. The switch of XGL_SIZE to size_t generates quite some warnings and is fixed. --- icd/common/icd-format.c | 2 +- icd/common/icd-format.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'icd') diff --git a/icd/common/icd-format.c b/icd/common/icd-format.c index 8aecb3eb..c56d70fc 100644 --- a/icd/common/icd-format.c +++ b/icd/common/icd-format.c @@ -66,7 +66,7 @@ static const struct icd_format_info { [XGL_CH_FMT_BC7] = { 16, 4 }, }; -unsigned int icd_format_get_size(XGL_FORMAT format) +size_t icd_format_get_size(XGL_FORMAT format) { return icd_format_table[format.channelFormat].size; } diff --git a/icd/common/icd-format.h b/icd/common/icd-format.h index 1bfc8af8..963eb61a 100644 --- a/icd/common/icd-format.h +++ b/icd/common/icd-format.h @@ -97,7 +97,7 @@ static inline int icd_format_get_block_width(XGL_FORMAT format) return (icd_format_is_compressed(format)) ? 4 : 1; } -XGL_SIZE icd_format_get_size(XGL_FORMAT format); +size_t icd_format_get_size(XGL_FORMAT format); XGL_UINT icd_format_get_channel_count(XGL_FORMAT format); -- cgit v1.2.3