broadcom: Add V3D 3.3 gallium driver called "vc5", for BCM7268.
authorEric Anholt <eric@anholt.net>
Fri, 3 Feb 2017 00:24:13 +0000 (16:24 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 10 Oct 2017 18:42:04 +0000 (11:42 -0700)
commit45bb8f2957108056de10721d50259e2f8c5a4ddc
tree37abe7d19c4e9d20990e1e42b2eeb61f00eab09e
parentade416d02369cc0942d53ad3cce601d66344f9c3
broadcom: Add V3D 3.3 gallium driver called "vc5", for BCM7268.

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.

v2: Fix tile layout for 64bpp textures.  Fix texture swizzling for 32-bit
    returns.  Fix up a bit of MRT setup.  Sync the simulator to kernel
    behavior a bit more.  Improve uniform debugging code.  Rebase on
    QIR->VIR rename.  Move texture state mostly to the CSOs.  Improve
    cache flushing on the simulator.  Fix program deletion
    use-after-frees.

Acked-by: Dave Airlie <airlied@gmail.com> (uabi plan)
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> (uabi plan)
43 files changed:
configure.ac
src/gallium/Makefile.am
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
src/gallium/auxiliary/target-helpers/drm_helper.h
src/gallium/auxiliary/target-helpers/drm_helper_public.h
src/gallium/drivers/vc4/Automake.inc
src/gallium/drivers/vc4/Makefile.am
src/gallium/drivers/vc5/.editorconfig [new file with mode: 0644]
src/gallium/drivers/vc5/Automake.inc [new file with mode: 0644]
src/gallium/drivers/vc5/Makefile.am [new file with mode: 0644]
src/gallium/drivers/vc5/Makefile.sources [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_blit.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_bufmgr.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_bufmgr.h [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_cl.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_cl.h [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_context.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_context.h [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_draw.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_drm.h [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_emit.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_fence.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_formats.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_job.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_program.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_query.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_rcl.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_resource.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_resource.h [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_screen.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_screen.h [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_simulator.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_state.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_tiling.c [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_tiling.h [new file with mode: 0644]
src/gallium/drivers/vc5/vc5_uniforms.c [new file with mode: 0644]
src/gallium/targets/dri/Makefile.am
src/gallium/targets/dri/target.c
src/gallium/winsys/vc5/drm/Android.mk [new file with mode: 0644]
src/gallium/winsys/vc5/drm/Makefile.am [new file with mode: 0644]
src/gallium/winsys/vc5/drm/Makefile.sources [new file with mode: 0644]
src/gallium/winsys/vc5/drm/vc5_drm_public.h [new file with mode: 0644]
src/gallium/winsys/vc5/drm/vc5_drm_winsys.c [new file with mode: 0644]