freedreno: add a3xx support
authorRob Clark <robclark@freedesktop.org>
Sun, 26 May 2013 21:13:44 +0000 (17:13 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 8 Jun 2013 17:15:51 +0000 (13:15 -0400)
commit2855f3f7bcd9b36a275e942c9c7d0eb8e485c16f
tree436514501ba4d2ceb907d5eb940181b0ed3704e6
parent18c317b21ddc2ec4538544f9dd69dc568dcf821f
freedreno: add a3xx support

The adreno a3xx GPU is found in newer snapdragon devices, such as the
nexus4.  The a3xx is GLESv3 and OpenCL capable, although that is not
enabled yet in gallium.

Compared to a2xx, it introduces an entirely new unified shader ISA, and
re-shuffles all or nearly all of the registers.  The good news is that
(for the most part) the registers are more orthogonal, not combining
unrelated state in a single register.  And that there is a lot more
flexibility, so we don't need to patch and re-emit the shader like we
did on a2xx.

The shader compiler is currently quite dumb, there would be a lot of
room for improvement with an optimizing pass.  Despite that, with the
a320 in my nexus4 it seems to be ~2-3x faster compared to the a220 in my
HP touchpad.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
36 files changed:
configure.ac
src/gallium/drivers/freedreno/Makefile.am
src/gallium/drivers/freedreno/a3xx/Makefile.am [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/a3xx.xml.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/disasm-a3xx.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_blend.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_blend.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_compiler.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_compiler.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_context.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_context.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_draw.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_draw.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_emit.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_emit.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_gmem.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_program.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_program.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_screen.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_screen.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_texture.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_texture.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_util.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_util.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_zsa.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/fd3_zsa.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/instr-a3xx.h [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/ir-a3xx.c [new file with mode: 0644]
src/gallium/drivers/freedreno/a3xx/ir-a3xx.h [new file with mode: 0644]
src/gallium/drivers/freedreno/adreno_common.xml.h
src/gallium/drivers/freedreno/adreno_pm4.xml.h
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/freedreno/freedreno_util.c