diff options
author | Eric Anholt <[email protected]> | 2016-10-04 16:29:26 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-10-06 18:09:24 -0700 |
commit | 06cc3dfda49b557b177ea6a5bc4fb87e087df21a (patch) | |
tree | 986a51eb2f81a6690d972563b91c93db1736effe /src/gallium/drivers/vc4/vc4_screen.c | |
parent | b30205b1120d4a87b6fb8eac9dea9a7f7a065123 (diff) |
vc4: Fix simulator when more than one vc4_screen is opened.
We would assertion fail in setting up the simulator the second time
around. This at least postpones the assertion failure until we've closed
all of the first set of screens and started opening a new set.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_screen.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c index 64bff5dc227..045f3fb2a34 100644 --- a/src/gallium/drivers/vc4/vc4_screen.c +++ b/src/gallium/drivers/vc4/vc4_screen.c @@ -99,6 +99,11 @@ vc4_screen_destroy(struct pipe_screen *pscreen) util_hash_table_destroy(screen->bo_handles); vc4_bufmgr_destroy(pscreen); slab_destroy_parent(&screen->transfer_pool); + +#if USE_VC4_SIMULATOR + vc4_simulator_destroy(screen); +#endif + close(screen->fd); ralloc_free(pscreen); } |