diff options
author | Christian Gmeiner | 2016-11-13 14:29:22 -0600 |
---|---|---|
committer | Christian Gmeiner | 2016-11-20 08:58:28 -0600 |
commit | befb6429f03072b128a55360c1cf57f7b4d47b67 (patch) | |
tree | be4ec384bea15f490dd84731e769752dc2a6f7d1 /etnaviv/etnaviv_priv.h | |
parent | a14d6a6a43742cfad7ab346bf9168eb893881816 (diff) | |
download | external-libgbm-befb6429f03072b128a55360c1cf57f7b4d47b67.tar.gz external-libgbm-befb6429f03072b128a55360c1cf57f7b4d47b67.tar.xz external-libgbm-befb6429f03072b128a55360c1cf57f7b4d47b67.zip |
etnaviv: add API to create etna_device from private dup() fd
Like etna_device_new() but creates it's own private dup() of the fd
which is close()d when the device is finalized.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'etnaviv/etnaviv_priv.h')
-rw-r--r-- | etnaviv/etnaviv_priv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etnaviv/etnaviv_priv.h b/etnaviv/etnaviv_priv.h index 6bb0c8dc..eb62ed33 100644 --- a/etnaviv/etnaviv_priv.h +++ b/etnaviv/etnaviv_priv.h | |||
@@ -93,6 +93,8 @@ struct etna_device { | |||
93 | void *handle_table, *name_table; | 93 | void *handle_table, *name_table; |
94 | 94 | ||
95 | struct etna_bo_cache bo_cache; | 95 | struct etna_bo_cache bo_cache; |
96 | |||
97 | int closefd; /* call close(fd) upon destruction */ | ||
96 | }; | 98 | }; |
97 | 99 | ||
98 | drm_private void etna_bo_cache_init(struct etna_bo_cache *cache); | 100 | drm_private void etna_bo_cache_init(struct etna_bo_cache *cache); |