diff options
author | Chia-I Wu <[email protected]> | 2019-01-10 15:27:28 -0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-03-11 10:01:41 -0700 |
commit | fcf24f47aac414cbd634be5085002a5698618678 (patch) | |
tree | f1021b1d8c854d1e0934007049b0989d7b6bdc09 /src/freedreno/vulkan/tu_private.h | |
parent | a25a803127c5f59ce9049d22c85e5dd7771014f6 (diff) |
turnip: add wrappers around DRM_MSM_GET_PARAM
Add tu_drm_get_gpu_id and tu_drm_get_gmem_size.
Diffstat (limited to 'src/freedreno/vulkan/tu_private.h')
-rw-r--r-- | src/freedreno/vulkan/tu_private.h | 10 |
1 files changed, 6 insertions, 4 deletions
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) \ \ |