diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2016-11-13 21:14:57 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2016-11-20 15:58:08 +0100 |
commit | a14d6a6a43742cfad7ab346bf9168eb893881816 (patch) | |
tree | 3614114ef5dd7812a58852d29918f6b4e6bd5fa4 /etnaviv | |
parent | 3e81f8b7b974c66915ea1bbc43d5c613c97e72c1 (diff) |
etnaviv: add API to get drm fd from etna_device
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'etnaviv')
-rwxr-xr-x | etnaviv/etnaviv-symbol-check | 1 | ||||
-rw-r--r-- | etnaviv/etnaviv_device.c | 5 | ||||
-rw-r--r-- | etnaviv/etnaviv_drmif.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/etnaviv/etnaviv-symbol-check b/etnaviv/etnaviv-symbol-check index 77c94c6e..378e073e 100755 --- a/etnaviv/etnaviv-symbol-check +++ b/etnaviv/etnaviv-symbol-check @@ -13,6 +13,7 @@ _init etna_device_new etna_device_ref etna_device_del +etna_device_fd etna_gpu_new etna_gpu_del etna_gpu_get_param diff --git a/etnaviv/etnaviv_device.c b/etnaviv/etnaviv_device.c index f954ca4e..b7163609 100644 --- a/etnaviv/etnaviv_device.c +++ b/etnaviv/etnaviv_device.c @@ -94,3 +94,8 @@ void etna_device_del(struct etna_device *dev) etna_device_del_impl(dev); pthread_mutex_unlock(&table_lock); } + +int etna_device_fd(struct etna_device *dev) +{ + return dev->fd; +} diff --git a/etnaviv/etnaviv_drmif.h b/etnaviv/etnaviv_drmif.h index 979b16a9..3a5cb51b 100644 --- a/etnaviv/etnaviv_drmif.h +++ b/etnaviv/etnaviv_drmif.h @@ -86,6 +86,7 @@ enum etna_param_id { struct etna_device *etna_device_new(int fd); struct etna_device *etna_device_ref(struct etna_device *dev); void etna_device_del(struct etna_device *dev); +int etna_device_fd(struct etna_device *dev); /* gpu functions: */ |