summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2018-11-01 19:03:26 +0100
committerMathias Fröhlich <[email protected]>2018-11-26 07:57:09 +0100
commit65332aff29b26ce2cf277e4c753eb53844038e1e (patch)
tree48bdaeaad1a45c576b8368d47cd76c7b520e81f9 /src/mesa/state_tracker
parent927ce66b391523cc5ac58b36efdac31c4629fb86 (diff)
mesa/st: Only care about the uploader if it was used.
In st_atom_array, we only need to care for unmapping the upload buffer if we actually used it. Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_atom_array.c6
1 files 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 19a5ef29a98..9831045b340 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;