gallium/u_queue: fix random crashes when the app calls exit()
authorMarek Olšák <marek.olsak@amd.com>
Mon, 20 Feb 2017 14:27:07 +0000 (15:27 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Feb 2017 19:26:39 +0000 (20:26 +0100)
commit4aea8fe7e01f2b65ffad3982687f90c8fa941524
tree2296d59c8c600f9d261b6f03095c0f6ffa7834d6
parenta96c9564e319cb387a9acf4981383cc77b018d0f
gallium/u_queue: fix random crashes when the app calls exit()

This fixes:
    vdpauinfo: ../lib/CodeGen/TargetPassConfig.cpp:579: virtual void
    llvm::TargetPassConfig::addMachinePasses(): Assertion `TPI && IPI &&
    "Pass ID not registered!"' failed.

v2: use list_head, switch the call order in destroy

Cc: 13.0 17.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/util/u_queue.c
src/gallium/auxiliary/util/u_queue.h