freedreno/a3xx: use INDIRECT state load for shaders
authorRob Clark <robclark@freedesktop.org>
Fri, 6 Sep 2013 22:21:25 +0000 (18:21 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 14 Sep 2013 17:31:58 +0000 (13:31 -0400)
commit1a42d4ee34d73cbc3e5bff3dcce5a913cd58aaba
tree83ed06325e99a8b814670662ad4d625fd450cf9a
parent6e9c386d16b3b38be6d1496758ef983b64744844
freedreno/a3xx: use INDIRECT state load for shaders

With a debug option to force DIRECT (mainly to make it easier for
capturing cmdstream dumps).  Using INDIRECT for large shaders at least
makes a noticable reduction in CPU load, which helps for CPU limited
games.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_program.c
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/freedreno/freedreno_util.h