util: move and adjust the vertex upload heuristic equation from u_vbuf
authorMarek Olšák <marek.olsak@amd.com>
Mon, 23 Mar 2020 01:00:18 +0000 (21:00 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 6 Apr 2020 14:30:10 +0000 (10:30 -0400)
commit068a3bf0d7cda0301b3dfc2e258698c6848ca706
treee13384a38786d6f5d6603c87b0961261ad464c7a
parentd9cb0ec5e611b5ba469a20e27fcd4001e88e841c
util: move and adjust the vertex upload heuristic equation from u_vbuf

This will also be used by glthread.

The new equation is optimized for glthread.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4466>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4466>
src/gallium/auxiliary/util/u_vbuf.c
src/util/u_math.h