glsl: fix constant packing for 64-bit big endian.
authorDave Airlie <airlied@redhat.com>
Mon, 29 Jun 2020 03:26:56 +0000 (13:26 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 30 Jun 2020 23:52:48 +0000 (09:52 +1000)
commit928660527697bc37b475037f9f2579aa4d2205b4
tree152f9143509c5827995bb890bd515fa81ac79623
parent2cd466bf340231474d1dc254fc894f69ebeac0a4
glsl: fix constant packing for 64-bit big endian.

In a piglit run on s390 a lot of double tests fail, explicitly
packing/shifting things rather than using memcpy seems to help

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5679>
src/compiler/glsl/ir_constant_expression.cpp
src/compiler/glsl/ir_expression_operation.py