From fcf24f47aac414cbd634be5085002a5698618678 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 10 Jan 2019 15:27:28 -0800 Subject: turnip: add wrappers around DRM_MSM_GET_PARAM Add tu_drm_get_gpu_id and tu_drm_get_gmem_size. --- src/freedreno/vulkan/tu_private.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/freedreno/vulkan/tu_private.h') diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h index 7209785840e..a2deb98abf8 100644 --- a/src/freedreno/vulkan/tu_private.h +++ b/src/freedreno/vulkan/tu_private.h @@ -1189,6 +1189,12 @@ struct tu_fence uint32_t temp_syncobj; }; +int +tu_drm_get_gpu_id(const struct tu_physical_device *dev, uint32_t *id); + +int +tu_drm_get_gmem_size(const struct tu_physical_device *dev, uint32_t *size); + uint32_t tu_gem_new(struct tu_device *dev, uint64_t size, uint32_t flags); void @@ -1197,10 +1203,6 @@ uint64_t tu_gem_info_offset(struct tu_device *dev, uint32_t gem_handle); uint64_t tu_gem_info_iova(struct tu_device *dev, uint32_t gem_handle); -int -tu_drm_query_param(struct tu_physical_device *dev, - uint32_t param, - uint64_t *value); #define TU_DEFINE_HANDLE_CASTS(__tu_type, __VkType) \ \ -- cgit v1.2.3