llvmpipe: Fix warning about uninitialized "op" in the NIR path.
authorEric Anholt <eric@anholt.net>
Tue, 17 Dec 2019 04:53:59 +0000 (20:53 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 18 Feb 2020 23:40:04 +0000 (15:40 -0800)
commitd8d34238a6dc61f6c522e2807bc83d434d27e74f
tree0309bb85d9057283a6dfb2ce2e86ce3918687762
parentb32bd704c0a22b6eb691f93158acbbdd4c5d370a
llvmpipe: Fix warning about uninitialized "op" in the NIR path.

Similar to TGSI, move the switch statement and use more unreachable().

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c