freedreno: add a20x
authorJonathan Marek <jonathan@marek.ca>
Thu, 21 Jun 2018 21:06:27 +0000 (17:06 -0400)
committerRob Clark <robdclark@gmail.com>
Fri, 22 Jun 2018 12:23:10 +0000 (08:23 -0400)
commit17e16ba9db2aef353babd84bfe9d874bbbc59c6a
treecac4dcbe219ad59175e6fa1cb11ffb7cf74aa144
parentd5ff36b97b1686504e666747e8a9bd9b318ba25b
freedreno: add a20x

this patch adds support for a20x, which has some differences with a220:
-no VGT_MAX_VTX_INDX register
-no CLEAR_COLOR register
-set RB_BC_CONTROL in restore (hangs without)
-different CP_DRAW_INDX format

tested with kmscube and glmark2 scenes, on par with a220

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_draw.c
src/gallium/drivers/freedreno/a2xx/fd2_emit.c
src/gallium/drivers/freedreno/a2xx/fd2_gmem.c
src/gallium/drivers/freedreno/freedreno_draw.h
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/freedreno/freedreno_screen.h
src/gallium/drivers/freedreno/freedreno_util.h