From d0916ccb10994e10382a411e5836ada56254e8e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 7 Oct 2020 18:48:40 -0400 Subject: [PATCH] gallium/u_threaded: move a structure up to be used later Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/auxiliary/util/u_threaded_context.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index d8dcad5..188c51e 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -60,6 +60,13 @@ enum tc_call_id { TC_NUM_CALLS, }; +/* This is actually variable-sized, because indirect isn't allocated if it's + * not needed. */ +struct tc_full_draw_info { + struct pipe_draw_info draw; + struct pipe_draw_indirect_info indirect; +}; + typedef void (*tc_execute)(struct pipe_context *pipe, union tc_payload *payload); static const tc_execute execute_func[TC_NUM_CALLS]; @@ -2125,13 +2132,6 @@ out_of_memory: pipe->flush(pipe, fence, flags); } -/* This is actually variable-sized, because indirect isn't allocated if it's - * not needed. */ -struct tc_full_draw_info { - struct pipe_draw_info draw; - struct pipe_draw_indirect_info indirect; -}; - static void tc_call_draw_vbo(struct pipe_context *pipe, union tc_payload *payload) { -- 2.7.4