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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/vc5/vc5_context.c b/src/gallium/drivers/vc5/vc5_context.c
index f6ae0ad989b..9403f8ffdd4 100644
--- a/src/gallium/drivers/vc5/vc5_context.c
+++ b/src/gallium/drivers/vc5/vc5_context.c
@@ -134,11 +134,13 @@ vc5_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
pctx->flush = vc5_pipe_flush;
pctx->invalidate_resource = vc5_invalidate_resource;
- if (screen->devinfo.ver >= 41)
+ if (screen->devinfo.ver >= 41) {
v3d41_draw_init(pctx);
- else
+ v3d41_state_init(pctx);
+ } else {
v3d33_draw_init(pctx);
- vc5_state_init(pctx);
+ v3d33_state_init(pctx);
+ }
vc5_program_init(pctx);
vc5_query_init(pctx);
vc5_resource_context_init(pctx);