llvmpipe: fix occlusion queries on big-endian.
authorDave Airlie <airlied@redhat.com>
Mon, 29 Jun 2020 05:57:14 +0000 (15:57 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 30 Jun 2020 23:52:56 +0000 (09:52 +1000)
commitb743c9bf2d5c987c97a22e725a56a2b641b58ae4
treecf2c3143ad1af22258a7419a131abc60ee64a4ec
parent3aeb61da49cf0e141759c23d4790ad5dd96bcf52
llvmpipe: fix occlusion queries on big-endian.

Casting to u8 arrays and picking the lowest byte is fairly LE specific
grab the other byte.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5679>
src/gallium/drivers/llvmpipe/lp_bld_depth.c