mesa: optimize glCallLists by using loops inside a switch
authorMarek Olšák <marek.olsak@amd.com>
Wed, 23 Dec 2020 19:06:02 +0000 (14:06 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 Jan 2021 00:12:35 +0000 (00:12 +0000)
commit8e825dac4298a622e9ebb8b43fb33fd76e8842b0
tree1c6f837032573f0ef7e9fe6de23f5c75f360b673
parent5edc9b136937769488b3a62d32f22817c2a572ee
mesa: optimize glCallLists by using loops inside a switch

This changes glCallLists from using a switch inside a loop to using loops
inside a switch.

Also fix the comments that didn't tell WHY something was important.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8297>
src/mesa/main/dlist.c