dfxvideo: Restore support for big-endian arch
authorPaul Cercueil <paul@crapouillou.net>
Sat, 21 May 2022 16:52:47 +0000 (17:52 +0100)
committerAsh Logan <ash@heyquark.com>
Mon, 6 Jun 2022 13:06:49 +0000 (23:06 +1000)
commit495d603c20ec58689bd7f73348d16e17f5491f5b
tree47b913bd3faf96c68d10014f1ef5780f544f0663
parent1318072afcc5d037c250e671af32f8d695ba2785
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