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>
This commit is contained in:
Mathias Fröhlich
2018-11-01 19:03:26 +01:00
committed by Mathias Fröhlich
parent 65332aff29
commit 774d585d49
+2 -1
View File
@@ -499,7 +499,8 @@ st_update_array(struct st_context *st)
&vbuffer[bufidx].buffer_offset,
&vbuffer[bufidx].buffer.resource);
if (!ctx->Const.AllowMappedBuffersDuringExecution) {
if (!ctx->Const.AllowMappedBuffersDuringExecution &&
!st->can_bind_const_buffer_as_vertex) {
u_upload_unmap(st->pipe->stream_uploader);
}
}