[Mesa-dev] [PATCH 6/6] broadcom: Add V3D 3.3 gallium driver called "vc5", for BCM7268.

Eric Anholt eric at anholt.net
Sat Aug 19 00:13:48 UTC 2017


V3D 3.3 is a continuation of the 3D implementation in VC4 (v2.1 and v2.6).
V3D 3.3 introduces an MMU (no more CMA allocations) and support for
GLES3.1.  This driver is not currently conformant, though that will be a
target as soon as possible.

V3D 3.x parts use a new texture tiling layout common across many Broadcom
graphics parts including and the HVS scanout engine.  It also massively
changes the QPU instructions, introducing a common physical register file
(no more A/B split) and half-float instructions, while removing the 4x8
unorm instructions in favor of half-float for talking to fixed function
interfaces.  Because so much has changed, vc5 is implemented in a separate
gallium driver, using only the XML code-generation support from vc4.
---

Contents trimmed due to patch size.  Full series at:
https://github.com/anholt/mesa/commits/vc5

 configure.ac                                       |   2 +
 src/Makefile.am                                    |   4 +
 src/gallium/Makefile.am                            |   5 +
 .../auxiliary/pipe-loader/pipe_loader_drm.c        |   5 +
 src/gallium/auxiliary/target-helpers/drm_helper.h  |  23 +
 .../auxiliary/target-helpers/drm_helper_public.h   |   3 +
 src/gallium/drivers/vc5/.editorconfig              |   3 +
 src/gallium/drivers/vc5/Automake.inc               |   9 +
 src/gallium/drivers/vc5/Makefile.am                |  43 ++
 src/gallium/drivers/vc5/Makefile.sources           |  26 +
 src/gallium/drivers/vc5/vc5_blit.c                 | 226 ++++++
 src/gallium/drivers/vc5/vc5_bufmgr.c               | 580 ++++++++++++++++
 src/gallium/drivers/vc5/vc5_bufmgr.h               | 140 ++++
 src/gallium/drivers/vc5/vc5_cl.c                   |  86 +++
 src/gallium/drivers/vc5/vc5_cl.h                   | 248 +++++++
 src/gallium/drivers/vc5/vc5_context.c              | 172 +++++
 src/gallium/drivers/vc5/vc5_context.h              | 504 ++++++++++++++
 src/gallium/drivers/vc5/vc5_draw.c                 | 606 ++++++++++++++++
 src/gallium/drivers/vc5/vc5_drm.h                  | 189 +++++
 src/gallium/drivers/vc5/vc5_emit.c                 | 497 ++++++++++++++
 src/gallium/drivers/vc5/vc5_fence.c                |  93 +++
 src/gallium/drivers/vc5/vc5_formats.c              | 412 +++++++++++
 src/gallium/drivers/vc5/vc5_job.c                  | 434 ++++++++++++
 src/gallium/drivers/vc5/vc5_program.c              | 678 ++++++++++++++++++
 src/gallium/drivers/vc5/vc5_query.c                |  91 +++
 src/gallium/drivers/vc5/vc5_rcl.c                  | 217 ++++++
 src/gallium/drivers/vc5/vc5_resource.c             | 763 +++++++++++++++++++++
 src/gallium/drivers/vc5/vc5_resource.h             | 158 +++++
 src/gallium/drivers/vc5/vc5_screen.c               | 648 +++++++++++++++++
 src/gallium/drivers/vc5/vc5_screen.h               | 107 +++
 src/gallium/drivers/vc5/vc5_simulator.c            | 682 ++++++++++++++++++
 src/gallium/drivers/vc5/vc5_state.c                | 580 ++++++++++++++++
 src/gallium/drivers/vc5/vc5_tiling.c               | 402 +++++++++++
 src/gallium/drivers/vc5/vc5_tiling.h               |  43 ++
 src/gallium/drivers/vc5/vc5_uniforms.c             | 416 +++++++++++
 src/gallium/targets/dri/Makefile.am                |   1 +
 src/gallium/targets/dri/target.c                   |   4 +
 src/gallium/winsys/vc5/drm/Android.mk              |  33 +
 src/gallium/winsys/vc5/drm/Makefile.am             |  31 +
 src/gallium/winsys/vc5/drm/Makefile.sources        |   3 +
 src/gallium/winsys/vc5/drm/vc5_drm_public.h        |  31 +
 src/gallium/winsys/vc5/drm/vc5_drm_winsys.c        |  35 +
 42 files changed, 9233 insertions(+)
 create mode 100644 src/gallium/drivers/vc5/.editorconfig
 create mode 100644 src/gallium/drivers/vc5/Automake.inc
 create mode 100644 src/gallium/drivers/vc5/Makefile.am
 create mode 100644 src/gallium/drivers/vc5/Makefile.sources
 create mode 100644 src/gallium/drivers/vc5/vc5_blit.c
 create mode 100644 src/gallium/drivers/vc5/vc5_bufmgr.c
 create mode 100644 src/gallium/drivers/vc5/vc5_bufmgr.h
 create mode 100644 src/gallium/drivers/vc5/vc5_cl.c
 create mode 100644 src/gallium/drivers/vc5/vc5_cl.h
 create mode 100644 src/gallium/drivers/vc5/vc5_context.c
 create mode 100644 src/gallium/drivers/vc5/vc5_context.h
 create mode 100644 src/gallium/drivers/vc5/vc5_draw.c
 create mode 100644 src/gallium/drivers/vc5/vc5_drm.h
 create mode 100644 src/gallium/drivers/vc5/vc5_emit.c
 create mode 100644 src/gallium/drivers/vc5/vc5_fence.c
 create mode 100644 src/gallium/drivers/vc5/vc5_formats.c
 create mode 100644 src/gallium/drivers/vc5/vc5_job.c
 create mode 100644 src/gallium/drivers/vc5/vc5_program.c
 create mode 100644 src/gallium/drivers/vc5/vc5_query.c
 create mode 100644 src/gallium/drivers/vc5/vc5_rcl.c
 create mode 100644 src/gallium/drivers/vc5/vc5_resource.c
 create mode 100644 src/gallium/drivers/vc5/vc5_resource.h
 create mode 100644 src/gallium/drivers/vc5/vc5_screen.c
 create mode 100644 src/gallium/drivers/vc5/vc5_screen.h
 create mode 100644 src/gallium/drivers/vc5/vc5_simulator.c
 create mode 100644 src/gallium/drivers/vc5/vc5_state.c
 create mode 100644 src/gallium/drivers/vc5/vc5_tiling.c
 create mode 100644 src/gallium/drivers/vc5/vc5_tiling.h
 create mode 100644 src/gallium/drivers/vc5/vc5_uniforms.c
 create mode 100644 src/gallium/winsys/vc5/drm/Android.mk
 create mode 100644 src/gallium/winsys/vc5/drm/Makefile.am
 create mode 100644 src/gallium/winsys/vc5/drm/Makefile.sources
 create mode 100644 src/gallium/winsys/vc5/drm/vc5_drm_public.h
 create mode 100644 src/gallium/winsys/vc5/drm/vc5_drm_winsys.c


More information about the mesa-dev mailing list