diff options
author | Marek Olšák <[email protected]> | 2017-06-21 20:34:30 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-26 02:17:03 +0200 |
commit | 833f3c1c31b1c4dc7742d83eb2db63dcc9b42e1b (patch) | |
tree | 9a676caaba9c1f191107d0c015ca872340d9b7a1 /src/gallium | |
parent | 7492201c4e7b7b3d6575a43673142d6735cb3977 (diff) |
gallium/hud: move struct hud_context to hud_private.h
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_context.c | 46 | ||||
-rw-r--r-- | src/gallium/auxiliary/hud/hud_private.h | 48 |
2 files changed, 48 insertions, 46 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 922ab969797..f32831b55f9 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -39,7 +39,6 @@ #include "hud/hud_context.h" #include "hud/hud_private.h" -#include "hud/font.h" #include "cso_cache/cso_context.h" #include "util/u_draw_quad.h" @@ -57,51 +56,6 @@ /* Control the visibility of all HUD contexts */ static boolean huds_visible = TRUE; -struct hud_context { - struct pipe_context *pipe; - struct cso_context *cso; - - struct hud_batch_query_context *batch_query; - struct list_head pane_list; - - /* states */ - struct pipe_blend_state no_blend, alpha_blend; - struct pipe_depth_stencil_alpha_state dsa; - void *fs_color, *fs_text; - struct pipe_rasterizer_state rasterizer, rasterizer_aa_lines; - void *vs; - struct pipe_vertex_element velems[2]; - - /* font */ - struct util_font font; - struct pipe_sampler_view *font_sampler_view; - struct pipe_sampler_state font_sampler_state; - - /* VS constant buffer */ - struct { - float color[4]; - float two_div_fb_width; - float two_div_fb_height; - float translate[2]; - float scale[2]; - float padding[2]; - } constants; - struct pipe_constant_buffer constbuf; - - unsigned fb_width, fb_height; - - /* vertices for text and background drawing are accumulated here and then - * drawn all at once */ - struct vertex_queue { - float *vertices; - struct pipe_vertex_buffer vbuf; - unsigned max_num_vertices; - unsigned num_vertices; - unsigned buffer_size; - } text, bg, whitelines, color_prims; - - bool has_srgb; -}; #ifdef PIPE_OS_UNIX static void diff --git a/src/gallium/auxiliary/hud/hud_private.h b/src/gallium/auxiliary/hud/hud_private.h index bf9962dbab0..f765bd9649c 100644 --- a/src/gallium/auxiliary/hud/hud_private.h +++ b/src/gallium/auxiliary/hud/hud_private.h @@ -29,7 +29,55 @@ #define HUD_PRIVATE_H #include "pipe/p_context.h" +#include "pipe/p_state.h" #include "util/list.h" +#include "hud/font.h" + +struct hud_context { + struct pipe_context *pipe; + struct cso_context *cso; + + struct hud_batch_query_context *batch_query; + struct list_head pane_list; + + /* states */ + struct pipe_blend_state no_blend, alpha_blend; + struct pipe_depth_stencil_alpha_state dsa; + void *fs_color, *fs_text; + struct pipe_rasterizer_state rasterizer, rasterizer_aa_lines; + void *vs; + struct pipe_vertex_element velems[2]; + + /* font */ + struct util_font font; + struct pipe_sampler_view *font_sampler_view; + struct pipe_sampler_state font_sampler_state; + + /* VS constant buffer */ + struct { + float color[4]; + float two_div_fb_width; + float two_div_fb_height; + float translate[2]; + float scale[2]; + float padding[2]; + } constants; + struct pipe_constant_buffer constbuf; + + unsigned fb_width, fb_height; + + /* vertices for text and background drawing are accumulated here and then + * drawn all at once */ + struct vertex_queue { + float *vertices; + struct pipe_vertex_buffer vbuf; + unsigned max_num_vertices; + unsigned num_vertices; + unsigned buffer_size; + } text, bg, whitelines, color_prims; + + bool has_srgb; +}; struct hud_graph { /* initialized by common code */ |