i965/tiled_memcpy: Rework the RGBA -> BGRA mem_copy functions
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Apr 2016 18:21:19 +0000 (11:21 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Apr 2016 19:09:15 +0000 (12:09 -0700)
commitd2b32656e18607f5807b3f4d4dde02568370b9bf
tree7bd99e849cf7a41b444c5d779e5895b2dd69f0e7
parentf6f54a29ca9bc8c1a1a994ff4e3ee09772de78e4
i965/tiled_memcpy: Rework the RGBA -> BGRA mem_copy functions

This splits the two copy functions into three: One for unaligned copies,
one for aligned sources, and one for aligned destinations.  Thanks to the
previous commit, we are now guaranteed that the aligned ones will *only*
operate on aligned memory so they should be safe.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93962
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/mesa/drivers/dri/i965/intel_tiled_memcpy.c