Prep work for later patch.
Signed-off-by: Rob Clark <robdclark@gmail.com>
pctx = fd_context_init(&fd2_ctx->base, pscreen,
(screen->gpu_id >= 220) ? a22x_primtypes : a20x_primtypes,
- priv);
+ priv, flags);
if (!pctx)
return NULL;
fd3_prog_init(pctx);
fd3_emit_init(pctx);
- pctx = fd_context_init(&fd3_ctx->base, pscreen, primtypes, priv);
+ pctx = fd_context_init(&fd3_ctx->base, pscreen, primtypes, priv, flags);
if (!pctx)
return NULL;
fd4_prog_init(pctx);
fd4_emit_init(pctx);
- pctx = fd_context_init(&fd4_ctx->base, pscreen, primtypes, priv);
+ pctx = fd_context_init(&fd4_ctx->base, pscreen, primtypes, priv, flags);
if (!pctx)
return NULL;
fd5_prog_init(pctx);
fd5_emit_init(pctx);
- pctx = fd_context_init(&fd5_ctx->base, pscreen, primtypes, priv);
+ pctx = fd_context_init(&fd5_ctx->base, pscreen, primtypes, priv, flags);
if (!pctx)
return NULL;
struct pipe_context *
fd_context_init(struct fd_context *ctx, struct pipe_screen *pscreen,
- const uint8_t *primtypes, void *priv)
+ const uint8_t *primtypes, void *priv, unsigned flags)
{
struct fd_screen *screen = fd_screen(pscreen);
struct pipe_context *pctx;
struct pipe_context * fd_context_init(struct fd_context *ctx,
struct pipe_screen *pscreen, const uint8_t *primtypes,
- void *priv);
+ void *priv, unsigned flags);
void fd_context_destroy(struct pipe_context *pctx);