freedreno: pass context flags through to fd_context_init()
Prep work for later patch. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
7a6c6e73a8
commit
7e7096307a
|
@ -113,7 +113,7 @@ fd2_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
||||||
|
|
||||||
pctx = fd_context_init(&fd2_ctx->base, pscreen,
|
pctx = fd_context_init(&fd2_ctx->base, pscreen,
|
||||||
(screen->gpu_id >= 220) ? a22x_primtypes : a20x_primtypes,
|
(screen->gpu_id >= 220) ? a22x_primtypes : a20x_primtypes,
|
||||||
priv);
|
priv, flags);
|
||||||
if (!pctx)
|
if (!pctx)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ fd3_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
||||||
fd3_prog_init(pctx);
|
fd3_prog_init(pctx);
|
||||||
fd3_emit_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)
|
if (!pctx)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ fd4_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
||||||
fd4_prog_init(pctx);
|
fd4_prog_init(pctx);
|
||||||
fd4_emit_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)
|
if (!pctx)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ fd5_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
||||||
fd5_prog_init(pctx);
|
fd5_prog_init(pctx);
|
||||||
fd5_emit_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)
|
if (!pctx)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
@ -244,7 +244,7 @@ fd_context_cleanup_common_vbos(struct fd_context *ctx)
|
||||||
|
|
||||||
struct pipe_context *
|
struct pipe_context *
|
||||||
fd_context_init(struct fd_context *ctx, struct pipe_screen *pscreen,
|
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 fd_screen *screen = fd_screen(pscreen);
|
||||||
struct pipe_context *pctx;
|
struct pipe_context *pctx;
|
||||||
|
|
|
@ -432,7 +432,7 @@ void fd_context_cleanup_common_vbos(struct fd_context *ctx);
|
||||||
|
|
||||||
struct pipe_context * fd_context_init(struct fd_context *ctx,
|
struct pipe_context * fd_context_init(struct fd_context *ctx,
|
||||||
struct pipe_screen *pscreen, const uint8_t *primtypes,
|
struct pipe_screen *pscreen, const uint8_t *primtypes,
|
||||||
void *priv);
|
void *priv, unsigned flags);
|
||||||
|
|
||||||
void fd_context_destroy(struct pipe_context *pctx);
|
void fd_context_destroy(struct pipe_context *pctx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue