mesa/st: Only unmap the uploader that was actually used.
authorMathias Fröhlich <mathias.froehlich@web.de>
Thu, 1 Nov 2018 18:03:26 +0000 (19:03 +0100)
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>
Mon, 26 Nov 2018 06:57:09 +0000 (07:57 +0100)
commit774d585d492d9666fc5d6c09b7868064000c96d8
tree7f9d9c6e578b6cf04d73ce2f3368b97c66fccf75
parent65332aff29b26ce2cf277e4c753eb53844038e1e
mesa/st: Only unmap the uploader that was actually used.

In st_atom_array, we only need to unmap the upload buffer that
was actually used.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/state_tracker/st_atom_array.c