aboutsummaryrefslogtreecommitdiff
path: root/icd
diff options
context:
space:
mode:
Diffstat (limited to 'icd')
-rw-r--r--icd/common/icd-format.c2
-rw-r--r--icd/common/icd-format.h2
2 files changed, 2 insertions, 2 deletions
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);