st/mesa: use buffer usage history to set dirty flags for revalidation
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 4 Jun 2016 17:26:46 +0000 (13:26 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 8 Jun 2016 02:27:04 +0000 (22:27 -0400)
commit6e6fd911da8a1d9cd62fe0a8a4cc0fb7bdccfe02
treec8ca9d74c904f69b4c8a597d2bb21ab6afa8a562
parentd9546b0c5d1a5136a92276cdd7c14883f0c62737
st/mesa: use buffer usage history to set dirty flags for revalidation

We were previously unconditionally doing this for arrays and ubo's, and
ignoring texture/storage/atomic buffers. Instead use the usage history
to determine which atoms need to be revalidated.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_cb_bufferobjects.c