[Mesa-dev] [PATCH] i965/tiled_memcpy: don't unconditionally use __builtin_bswap32

Matt Turner mattst88 at gmail.com
Tue Apr 19 18:11:37 UTC 2016


On Mon, Apr 18, 2016 at 7:31 PM, Jonathan Gray <jsg at jsg.id.au> wrote:
> Use the defines Mesa configure sets to indicate presence of the bswap32
> builtins.  This lets i965 work on OpenBSD again after the changes that
> were made in 0a5d8d9af42fd77fce1492d55f958da97816961a.
>
> Signed-off-by: Jonathan Gray <jsg at jsg.id.au>

Reviewed-by: Matt Turner <mattst88 at gmail.com>

Indeed, Patrick's right -- gcc (at least as of 2009) will recognize
open-coded bswap. I'd be happy to just replace the __builtin_bswap32
as he suggests.


More information about the mesa-dev mailing list