mesa: fix mesa_problem() call in _mesa_program_state_flags()
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 7 Sep 2021 06:19:17 +0000 (16:19 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Sep 2021 03:33:59 +0000 (03:33 +0000)
commit732cd9db445d276de9ce0844430ebc0e9e4ade25
tree35ec4162aa2f4125d50b956b74b86535e8ad2806
parentc5059915eedc9322bc67060c6e1f529d0c2988b2
mesa: fix mesa_problem() call in _mesa_program_state_flags()

Previously STATE_INTERNAL returned 0 for the unhandled states
but the outer switch throws the error for unhandled states.

Fixes: b4f3497786ef ("mesa: remove STATE_INTERNAL")

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5316

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12746>
src/mesa/program/prog_statevars.c