mesa: avoid redundant VBO updates
authorRob Clark <robdclark@chromium.org>
Thu, 16 Apr 2020 16:46:04 +0000 (09:46 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 04:49:52 +0000 (04:49 +0000)
commit7e1b57a6d964ac58e84ec4ece2951e4e643d6b1a
treee66151c119845d9f2aa6962aa11a19292cb3702b
parent155bb74ea965e9b686a6bce89c7a77065f41755f
mesa: avoid redundant VBO updates

Avoids re-emitting unchanged VBO state, which is a big chunk of the
state updates in gfxbench driver2

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4619>
src/mesa/main/varray.c
src/mesa/vbo/vbo_private.h