mesa/get: fix enum16 big-endian getting.
authorDave Airlie <airlied@redhat.com>
Mon, 29 Jun 2020 19:04:19 +0000 (05:04 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 30 Jun 2020 23:52:56 +0000 (09:52 +1000)
commit0e6dfd11f220fd1c55b4dc2f371263414874f1fd
tree07e80f344dd142812ebf13874551c3d860d14c53
parentb743c9bf2d5c987c97a22e725a56a2b641b58ae4
mesa/get: fix enum16 big-endian getting.

These values were getting casted up to 32-bit, but then extracted
via 16-bit pointer later. Just store via 16-bit.

Fixes a lot of piglit on s390

Fixes: f96a69f916ae ("mesa: replace GLenum with GLenum16 in common structures (v4)");
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5679>
src/mesa/main/get.c