st/mesa: unmap pbo after updating cache
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 28 Nov 2019 16:51:20 +0000 (17:51 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 29 Nov 2019 07:45:06 +0000 (07:45 +0000)
commitc7c0bd9f1ec41a0097987e5af1ecc935a880b9fe
treeea6db52189dce4bf7d93e8cf10c3df5b7741dda9
parentde2e5f6f540de7e7d2e5208937a6f8fc17ace547
st/mesa: unmap pbo after updating cache

Unmapping first leads to accessing an invalid pointer. So let's switch
these lines around.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_drawpixels.c