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:
parent
65332aff29
commit
774d585d49
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue