freedreno: fix crash if ctx torn down with no rendering
authorRob Clark <robdclark@gmail.com>
Sat, 15 Apr 2017 16:32:17 +0000 (12:32 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 17 Apr 2017 18:00:05 +0000 (14:00 -0400)
commitd4601b0efc7f5e24e3f39fefa8e29e79560245ce
tree1c1fb3e57bba5a49a8abdaf677ee6db37f31c958
parent15fe9b2347931f474d751dde04cc30f91e6c2d26
freedreno: fix crash if ctx torn down with no rendering

In this case, ctx->flush_queue would not have been initialized.

Fixes: 0b613c20 ("freedreno: enable draw/batch reordering by default")
Cc: "17.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_context.c