freedreno: fix fence creation fail if no rendering
authorRob Clark <robdclark@gmail.com>
Fri, 26 May 2017 14:18:31 +0000 (10:18 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 28 May 2017 18:49:27 +0000 (14:49 -0400)
commit8fc9702a1b7027d266121713771eafd2aa1a93b6
tree8321f1a8a1f4fd2effc4d733239479bff6590642
parentab8fb5a082513bb699b224c52ac82779752608fb
freedreno: fix fence creation fail if no rendering

Android tries to create a FENCE_FD fence without any rendering.  And
then falls over when that fails.  So just always create an initial
batch.

Fixes: e4ad8695 ("freedreno: fix crash when flush() but no rendering")
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_context.c