diff options
author | Marek Vasut <marex@denx.de> | 2019-06-08 19:52:55 +0200 |
---|---|---|
committer | Lucas Stach <dev@lynxeye.de> | 2019-10-18 17:03:25 +0000 |
commit | 90e223646bf9541c4b751bcbd04cd81e27fb42e1 (patch) | |
tree | f3ead4c7b1d11573e6b5624aef4c218d5eded1e8 /src/gallium/drivers/etnaviv/etnaviv_screen.c | |
parent | 2946bd6628fb5395679c2c88ebb7c43a5c6b8f8a (diff) |
etnaviv: Make contexts track resources
Currently, the screen tracks all resources for all contexts, but this
is not correct. Each context should track the resources it uses. This
also allows a context to detect whether a resource is used by another
context and to notify another context using a resource that the current
context is done using the resource.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: Guido Günther <guido.gunther@puri.sm>
Cc: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_screen.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_screen.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 1476ab206f5..ed989dbe149 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c @@ -84,7 +84,6 @@ etna_screen_destroy(struct pipe_screen *pscreen) { struct etna_screen *screen = etna_screen(pscreen); - _mesa_set_destroy(screen->used_resources, NULL); mtx_destroy(&screen->lock); if (screen->perfmon) @@ -958,15 +957,9 @@ etna_screen_create(struct etna_device *dev, struct etna_gpu *gpu, etna_pm_query_setup(screen); mtx_init(&screen->lock, mtx_recursive); - screen->used_resources = _mesa_set_create(NULL, _mesa_hash_pointer, - _mesa_key_pointer_equal); - if (!screen->used_resources) - goto fail2; return pscreen; -fail2: - mtx_destroy(&screen->lock); fail: etna_screen_destroy(pscreen); return NULL; |