mesa: fix 38% decrease in display list performance of Viewperf2020/NX8_StudioAA
authorMarek Olšák <marek.olsak@amd.com>
Fri, 14 Jul 2023 19:35:05 +0000 (15:35 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 15:36:47 +0000 (15:36 +0000)
commitc97961a855ad1ae5c58d47634862b459e682e158
treeed039b288f10dac5712c94f6a0b23cd1175f1203
parent701b035179b61bf2d21a912132ec8408655bb1e8
mesa: fix 38% decrease in display list performance of Viewperf2020/NX8_StudioAA

It happened because glCallList was restoring varying_vp_inputs, which
caused every glCallList to process the state change again.

This loosely reverts commit 3a294ff01fb9d1d8b4f984a364ed7ef469624c49
"mesa: move the _mesa_set_varying_vp_inputs call to where the state changes".

Fixes: 3a294ff01fb9d1d8b - "mesa: move the _mesa_set_varying_vp_inputs call to where the state changes"

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24165>
src/mesa/main/draw.c
src/mesa/main/state.c
src/mesa/main/varray.c
src/mesa/state_tracker/st_cb_rasterpos.c
src/mesa/vbo/vbo_exec_draw.c
src/mesa/vbo/vbo_save_draw.c