broadcom/vc4: Fix use-after-free for flushing when writing to a texture.
authorEric Anholt <eric@anholt.net>
Mon, 18 Sep 2017 21:52:32 +0000 (14:52 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 18 Sep 2017 23:15:58 +0000 (16:15 -0700)
commitd88a75182d5fccb956fbfccddf627aa1831465be
tree9fcb23a10be93c7e9521caf9abf42aaddb07c1c6
parent6e3d7a59162a48cd55c7405295061301839c8135
broadcom/vc4: Fix use-after-free for flushing when writing to a texture.

I was trying to continue the hash table loop, not the inner loop.  This
tended to work out, because we would have *just* freed the job struct.
Fixes some valgrind failures in fbo-depthtex.

Fixes: f597ac396640 ("vc4: Implement job shuffling")
src/gallium/drivers/vc4/vc4_job.c