amd/addrlib: Use signed char for INT_8.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 13 Nov 2020 01:34:40 +0000 (02:34 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 13 Nov 2020 02:37:54 +0000 (02:37 +0000)
Some architectures like aarch64 and ppc64el have char = unisgned char.
This breaks meta equation generation for DCC coords, as addrlib tries
to filter all the Z bits > -1 which ends up being all the Z bits > 255.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7593>

src/amd/addrlib/inc/addrtypes.h

index 8d552fd..fc2ddfc 100644 (file)
@@ -649,7 +649,7 @@ typedef enum _AddrTileType
 #endif
 
 #ifndef INT_8
-#define INT_8   char
+#define INT_8   signed char
 #endif
 
 #ifndef UINT_8