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)
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

index 85081571fe7f3967227a7a9a9e7aa1b592eb9401..8632bde9a61fd0d9d4013861ce94408a133aae47 100644 (file)
@@ -913,6 +913,8 @@ _mesa_program_state_flags(const gl_state_index16 state[STATE_LENGTH])
    case STATE_CLIP_INTERNAL:
       return _NEW_TRANSFORM | _NEW_PROJECTION;
 
+   case STATE_TCS_PATCH_VERTICES_IN:
+   case STATE_TES_PATCH_VERTICES_IN:
    case STATE_INTERNAL_DRIVER:
       return 0; /* internal driver state */