diff options
author | Marek Olšák <[email protected]> | 2017-11-18 17:46:51 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-25 17:16:56 +0100 |
commit | 65433c3fd06ad2d080fb40bce139bc814cd76215 (patch) | |
tree | 7a2de527022b6e17e8eb03dfa58af648e7e3fcf7 /src/gallium/auxiliary/hud | |
parent | e20364df828d3758c570658dff780d01cab0e5ed (diff) |
gallium/hud: use cso_get_pipe_context
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_context.c | 5 | ||||
-rw-r--r-- | src/gallium/auxiliary/hud/hud_context.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index d54bd639579..92d607fdee6 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -1530,8 +1530,9 @@ print_help(struct pipe_screen *screen) } struct hud_context * -hud_create(struct pipe_context *pipe, struct cso_context *cso) +hud_create(struct cso_context *cso) { + struct pipe_context *pipe = cso_get_pipe_context(cso); struct pipe_screen *screen = pipe->screen; struct hud_context *hud; struct pipe_sampler_view view_templ; @@ -1548,7 +1549,7 @@ hud_create(struct pipe_context *pipe, struct cso_context *cso) return NULL; if (strcmp(env, "help") == 0) { - print_help(pipe->screen); + print_help(screen); return NULL; } diff --git a/src/gallium/auxiliary/hud/hud_context.h b/src/gallium/auxiliary/hud/hud_context.h index deb60ef1098..97aa709f061 100644 --- a/src/gallium/auxiliary/hud/hud_context.h +++ b/src/gallium/auxiliary/hud/hud_context.h @@ -35,7 +35,7 @@ struct pipe_resource; struct util_queue_monitoring; struct hud_context * -hud_create(struct pipe_context *pipe, struct cso_context *cso); +hud_create(struct cso_context *cso); void hud_destroy(struct hud_context *hud); |