mesa: rework _MESA_NEW_NEED_EYE_COORDS to reduce fixed-func program updates
authorMarek Olšák <marek.olsak@amd.com>
Mon, 1 Feb 2021 18:17:13 +0000 (13:17 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Feb 2021 23:38:01 +0000 (23:38 +0000)
commitbc05833c8a114256a48cd7b2b905581767f0dcc2
treee7f3d04f8334ac2401a40f7b9635000edfcf63fe
parent14c933b9003eb0816f2b3232c541a8a780ba7dde
mesa: rework _MESA_NEW_NEED_EYE_COORDS to reduce fixed-func program updates

This eliminates a lot of the remaining no-op fixed-func program key
recomputations in _mesa_update_state.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8850>
src/mesa/main/light.c
src/mesa/main/light.h
src/mesa/main/mtypes.h
src/mesa/main/state.c