Re: MesaLib

Robert Swindells <[email protected]> Wed, 12 Jul 2023 00:05:36 +0100
Newsgroups gmane.os.netbsd.devel.x11
Message-ID <[email protected]>
>> <https://ftp.NetBSD.org/pub/NetBSD/misc/rjs/mesa/MesaLib.diff>
>
> Index: src/util/macros.h
> ...
> +#include <sys/param.h>
>
> what's this part about?  i suspect is why the earlier patch:
>
> +#ifndef __NetBSD__
>  #define MIN(a, b) ((a) < (b) ? (a) : (b))
> #define MAX(a, b) ((a) > (b) ? (a) : (b))
> +#endif
>
> was needed?  oh, i guess for CACHE_LINE_SIZE.  hmm.  i wonder if
> we have a better way of doing this...

It builds with these changes reverted.

Can revisit this when I add panfrost and lima to the build.