radeonsi: convert dispatch packet to little endian
authorBas Vermeulen <bas@daedalean.ai>
Mon, 9 Apr 2018 11:06:01 +0000 (13:06 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 9 Apr 2018 17:47:52 +0000 (13:47 -0400)
commitc63bef15fc6f55ad9d5aa82076b94108f6b54236
tree16b6cef2a09c49554cb0a5fda31c50dfe46a8816
parentbe628e47494fb19db593a2006feb1c3688014d92
radeonsi: convert dispatch packet to little endian

The parameters for the compute engine are wrong when using
an E8860 on a big endian machine.
To fix this, convert the contents of struct dispatch_packet
to little endian.

This ensures that get_global_id(0) and similar functions
in the OpenCL code get the correct endian values, and
makes my simple OpenCL program work correctly.

Signed-off-by: Bas Vermeulen <bas@daedalean.ai>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_compute.c