freedreno/a2xx: move setup/restore cmds into binning pass
authorRob Clark <robclark@freedesktop.org>
Fri, 20 May 2016 20:00:26 +0000 (16:00 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 2 Jul 2016 12:58:50 +0000 (08:58 -0400)
commit2081c1ecc00682302faa9555cc0551fc14a338f0
tree857c6f1f4544bdf98a4381be7cc10af1c5fb60da
parent2c3b54c27820edcf2d74e96faa812f8dd29f56df
freedreno/a2xx: move setup/restore cmds into binning pass

Rather than doing a separate submit at context create, move these cmds
to before first tile, as is done on a3xx/a4xx.  Otherwise state can
be overwritten by other contexts.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_context.c
src/gallium/drivers/freedreno/a2xx/fd2_emit.c
src/gallium/drivers/freedreno/a2xx/fd2_emit.h
src/gallium/drivers/freedreno/a2xx/fd2_gmem.c