diff options
author | Eric Anholt <[email protected]> | 2018-01-04 23:19:08 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-01-12 21:55:04 -0800 |
commit | 57965755e2c8089e5b52897fa86305e595f6792f (patch) | |
tree | a4acac4e030b72aefe31d77f6e3f0c330c8b832d /src/gallium/drivers/vc5/vc5_context.c | |
parent | f50d39ab4936d99051648e1669b428f4ef0f2afd (diff) |
broadcom/vc5: Port drawing commands to V3D 4.x.
This required extending the CL submit ioctl, because the tile alloc/state
buffer setup has moved from the BCL to register writes.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_context.c')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_context.c | 5 |
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); |