freedreno: fix crash when flush() but no rendering
authorRob Clark <robdclark@gmail.com>
Sun, 14 May 2017 15:32:44 +0000 (11:32 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 14 May 2017 19:10:08 +0000 (15:10 -0400)
commite4ad86952a197549894eb4c9a96af0c76dd95d18
treee2d13577490b787cd6f24be49704f178f8341bc4
parent06a51fb4e5bcec4fa9911b6a20a38deac45d9e21
freedreno: fix crash when flush() but no rendering

If we haven't created a batch, just bail in pipe->flush(), since there
is nothing to do.

Fixes crash in warsow, which creates a whole bunch of contexts used for
nothing but texture uploads.

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