if (ctx->st->cso_context) {
ctx->pp = pp_init(ctx->st->pipe, ctx->pp_enabled, ctx->st->cso_context);
+ ctx->hud = hud_create(ctx->st->pipe, ctx->st->cso_context);
}
*error = __DRI_CTX_ERROR_SUCCESS;
{
struct dri_context *ctx = dri_context(cPriv);
+ if (ctx->hud) {
+ hud_destroy(ctx->hud);
+ }
+
/* note: we are freeing values and nothing more because
* driParseConfigFiles allocated values only - the rest
* is owned by screen optionCacheDefaults.
#include "dri_util.h"
#include "pipe/p_compiler.h"
#include "postprocess/filters.h"
+#include "hud/hud_context.h"
struct pipe_context;
struct pipe_fence;
struct st_context_iface *st;
struct pp_queue_t *pp;
unsigned int pp_enabled[PP_FILTERS];
+ struct hud_context *hud;
};
static INLINE struct dri_context *