summaryrefslogtreecommitdiff
path: root/src/mesa/main/format_pack.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2019-11-07 12:10:51 -0800
committerMarge Bot <eric+marge@anholt.net>2021-01-15 18:58:50 +0000
commitd938c28c3150b8aa87d7edef25a8912b3af80723 (patch)
tree137570efccaeb3acdcbefc2fc7ffd982754763d6 /src/mesa/main/format_pack.h
parente5e75b714d7a386cbdd0956ee4e9a5b4c70c963e (diff)
mesa: Add some little unit tests showing format unpack behavior.
I'm about to refactor pack/unpack code, and it would be nice to document what it does as I change it. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6297>
Diffstat (limited to 'src/mesa/main/format_pack.h')
-rw-r--r--src/mesa/main/format_pack.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/format_pack.h b/src/mesa/main/format_pack.h
index e54105aff51..43871e32d28 100644
--- a/src/mesa/main/format_pack.h
+++ b/src/mesa/main/format_pack.h
@@ -29,6 +29,10 @@
#include "formats.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** Pack a uint8_t rgba[4] color to dest address */
typedef void (*mesa_pack_ubyte_rgba_func)(const uint8_t src[4], void *dst);
@@ -101,4 +105,8 @@ extern void
_mesa_pack_uint_24_8_depth_stencil_row(mesa_format format, uint32_t n,
const uint32_t *src, void *dst);
+#ifdef __cplusplus
+}
+#endif
+
#endif