i965/tiled_memcpy: don't unconditionally use __builtin_bswap32
authorJonathan Gray <jsg@jsg.id.au>
Tue, 19 Apr 2016 02:31:20 +0000 (12:31 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 21 Apr 2016 13:41:41 +0000 (14:41 +0100)
commit5d09394fb119ba68e735750eaf4d8590b8a6fed6
tree45402a02ae058ce176226694fba81e7cbebe5b91
parent9bbf3737f9c96377bee65b947da3e63adaa58d58
i965/tiled_memcpy: don't unconditionally use __builtin_bswap32

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@jsg.id.au>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/intel_tiled_memcpy.c