diff options
author | Marek Olšák <[email protected]> | 2020-03-27 05:57:56 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-27 11:56:06 +0000 |
commit | fc4b78f4cc31aa74054933ed65aae5712109bc4e (patch) | |
tree | 08c4278dc4a50c1e7268cc22945f017fe7967e2c | |
parent | 41671ec544dc76e7eb926910e3db69803550c3aa (diff) |
glthread: use 32-bit align instead of 64-bit ALIGN
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4758>
-rw-r--r-- | src/mesa/main/glthread_marshal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glthread_marshal.h b/src/mesa/main/glthread_marshal.h index 8fc65d29862..f464f2bd565 100644 --- a/src/mesa/main/glthread_marshal.h +++ b/src/mesa/main/glthread_marshal.h @@ -59,13 +59,13 @@ _mesa_glthread_allocate_command(struct gl_context *ctx, struct glthread_state *glthread = &ctx->GLThread; struct glthread_batch *next = &glthread->batches[glthread->next]; struct marshal_cmd_base *cmd_base; - const int aligned_size = ALIGN(size, 8); if (unlikely(next->used + size > MARSHAL_MAX_CMD_SIZE)) { _mesa_glthread_flush_batch(ctx); next = &glthread->batches[glthread->next]; } + const int aligned_size = align(size, 8); cmd_base = (struct marshal_cmd_base *)&next->buffer[next->used]; next->used += aligned_size; cmd_base->cmd_id = cmd_id; |