gallium: inline struct u_suballocator to remove dereferences

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7901>
This commit is contained in:
Marek Olšák
2020-11-29 01:16:25 -05:00
committed by Marge Bot
parent 0b22def5f8
commit 8904fcca6d
19 changed files with 62 additions and 78 deletions

View File

@@ -2765,7 +2765,7 @@ void *r600_create_vertex_fetch_shader(struct pipe_context *ctx,
return NULL;
}
u_suballocator_alloc(rctx->allocator_fetch_shader, fs_size, 256,
u_suballocator_alloc(&rctx->allocator_fetch_shader, fs_size, 256,
&shader->offset,
(struct pipe_resource**)&shader->buffer);
if (!shader->buffer) {