}
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;
return NULL;
if (strcmp(env, "help") == 0) {
- print_help(pipe->screen);
+ print_help(screen);
return NULL;
}
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);
if (ctx->st->cso_context) {
ctx->pp = pp_init(ctx->st->pipe, screen->pp_enabled, ctx->st->cso_context);
- ctx->hud = hud_create(ctx->st->pipe, ctx->st->cso_context);
+ ctx->hud = hud_create(ctx->st->cso_context);
}
/* Do this last. */
c->st->st_manager_private = (void *) c;
- c->hud = hud_create(c->st->pipe, c->st->cso_context);
+ c->hud = hud_create(c->st->cso_context);
return c;
if (!This->cso_sw) { return E_OUTOFMEMORY; }
/* Create first, it messes up our state. */
- This->hud = hud_create(This->context.pipe, This->context.cso); /* NULL result is fine */
+ This->hud = hud_create(This->context.cso); /* NULL result is fine */
/* Available memory counter. Updated only for allocations with this device
* instance. This is the Win 7 behavior.
ctx->st->st_manager_private = (void *) ctx;
if (ctx->st->cso_context) {
- ctx->hud = hud_create(ctx->st->pipe, ctx->st->cso_context);
+ ctx->hud = hud_create(ctx->st->cso_context);
}
stw_lock_contexts(stw_dev);