freedreno: allocate ctx's batch on demand
authorRob Clark <robdclark@gmail.com>
Mon, 3 Sep 2018 20:33:59 +0000 (16:33 -0400)
committerRob Clark <robdclark@gmail.com>
Wed, 5 Sep 2018 17:38:43 +0000 (13:38 -0400)
commitc3d9f29b78136c949ff2c98886aea8803f62b34e
tree914a41c0187f78e6c63be19650ab16f1bd2def8d
parenta122118c14a3cc9da22b94174cae7ee8d8445dfa
freedreno: allocate ctx's batch on demand

Don't fall over when app wants more than 32 contexts.  Instead allocate
contexts on demand.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_state.c