dfxvideo: Restore support for big-endian arch
authorPaul Cercueil <paul@crapouillou.net>
Sat, 21 May 2022 16:52:47 +0000 (17:52 +0100)
committernotaz <notasas@gmail.com>
Fri, 29 Jul 2022 20:48:40 +0000 (23:48 +0300)
commitae097dfb64926c50902b08b681cbf805b98e3751
treeb95626b6d664353e1d7673e066ae86910fe1fb69
parentae8f89db2a4746d6119aca9359bdee75ad122fa0
dfxvideo: Restore support for big-endian arch

The hardware registers, emulated RAM or emulated VRAM are all in
little-endian format. Therefore, each access must be done with one of
the byte-swap macros, for the plugin to work on big-endian systems.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
plugins/dfxvideo/gpu.c
plugins/dfxvideo/gpu.h
plugins/dfxvideo/gpulib_if.c
plugins/dfxvideo/prim.c
plugins/dfxvideo/soft.c
plugins/gpulib/gpu.c