[Mesa-dev] [PATCH 1/6] mesa/st: Only care about the uploader if it was used.
Mathias.Froehlich at gmx.net
Mathias.Froehlich at gmx.net
Fri Nov 23 08:07:27 UTC 2018
From: Mathias Fröhlich <mathias.froehlich at web.de>
In st_atom_array, we only need to care for unmapping the upload buffer
if we actually used it.
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
---
src/mesa/state_tracker/st_atom_array.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c
index 19a5ef29a9..9831045b34 100644
--- a/src/mesa/state_tracker/st_atom_array.c
+++ b/src/mesa/state_tracker/st_atom_array.c
@@ -498,10 +498,10 @@ st_update_array(struct st_context *st)
0, cursor - data, max_alignment, data,
&vbuffer[bufidx].buffer_offset,
&vbuffer[bufidx].buffer.resource);
- }
- if (!ctx->Const.AllowMappedBuffersDuringExecution) {
- u_upload_unmap(st->pipe->stream_uploader);
+ if (!ctx->Const.AllowMappedBuffersDuringExecution) {
+ u_upload_unmap(st->pipe->stream_uploader);
+ }
}
const unsigned num_inputs = st->vp_variant->num_inputs;
--
2.17.2
More information about the mesa-dev
mailing list