summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_context.c')
-rw-r--r--src/gallium/drivers/vc5/vc5_context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_context.c b/src/gallium/drivers/vc5/vc5_context.c
index d27f41bb5f8..f6ae0ad989b 100644
--- a/src/gallium/drivers/vc5/vc5_context.c
+++ b/src/gallium/drivers/vc5/vc5_context.c
@@ -134,7 +134,10 @@ vc5_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
pctx->flush = vc5_pipe_flush;
pctx->invalidate_resource = vc5_invalidate_resource;
- vc5_draw_init(pctx);
+ if (screen->devinfo.ver >= 41)
+ v3d41_draw_init(pctx);
+ else
+ v3d33_draw_init(pctx);
vc5_state_init(pctx);
vc5_program_init(pctx);
vc5_query_init(pctx);