mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
st/mesa: unmap upload buffer after uploading indices and constants
This commit is contained in:
parent
3ed72dd31d
commit
8c5ff5a41f
2 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ void st_upload_constants( struct st_context *st,
|
|||
cb.user_buffer = NULL;
|
||||
u_upload_data(st->constbuf_uploader, 0, paramBytes,
|
||||
params->ParameterValues, &cb.buffer_offset, &cb.buffer);
|
||||
u_upload_unmap(st->constbuf_uploader);
|
||||
} else {
|
||||
cb.buffer = NULL;
|
||||
cb.user_buffer = params->ParameterValues;
|
||||
|
|
|
|||
|
|
@ -594,6 +594,7 @@ setup_index_buffer(struct st_context *st,
|
|||
else if (st->indexbuf_uploader) {
|
||||
u_upload_data(st->indexbuf_uploader, 0, ib->count * ibuffer->index_size,
|
||||
ib->ptr, &ibuffer->offset, &ibuffer->buffer);
|
||||
u_upload_unmap(st->indexbuf_uploader);
|
||||
}
|
||||
else {
|
||||
/* indices are in user space memory */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue