mesa: gather errors and call _mesa_error only once in validate_Draw
authorMarek Olšák <marek.olsak@amd.com>
Mon, 25 Jan 2021 04:48:06 +0000 (23:48 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Feb 2021 19:29:09 +0000 (19:29 +0000)
commit707919014998f457bc1d693b28d1f46ee09caead
treecdf6477630204d6ee21367553b65ba293e2521cd
parent37beefe6016538079d23138bc9a53ff01aab947d
mesa: gather errors and call _mesa_error only once in validate_Draw

This mainly skips all the jumping around various _mesa_error calls that
are never taken. There is a tiny measurable improvement in CPU overhead.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8798>
src/mesa/main/draw_validate.c
src/mesa/main/draw_validate.h
src/mesa/vbo/vbo_exec_api.c