Lines Matching refs:res_handle

1639     void flushResource(uint32_t res_handle) {  in flushResource()  argument
1642 res_handle, [this, taskId](std::shared_future<void> waitForGpu) { in flushResource()
1648 int createRingBlob(PipeResEntry& entry, uint32_t res_handle, in createRingBlob() argument
1652 std::string name = "shared-memory-" + std::to_string(res_handle); in createRingBlob()
1681 int createBlob(uint32_t ctx_id, uint32_t res_handle, in createBlob() argument
1684 stream_renderer_debug("ctx:%u res:%u blob-id:%u blob-size:%u", ctx_id, res_handle, in createBlob()
1693 int ret = createRingBlob(e, res_handle, create_blob, handle); in createBlob()
1741 mResources[res_handle] = e; in createBlob()
1745 int resourceMap(uint32_t res_handle, void** hvaOut, uint64_t* sizeOut) { in resourceMap() argument
1748 auto it = mResources.find(res_handle); in resourceMap()
1762 int resourceUnmap(uint32_t res_handle) { in resourceUnmap() argument
1763 auto it = mResources.find(res_handle); in resourceUnmap()
1773 int platformImportResource(int res_handle, int res_info, void* resource) { in platformImportResource() argument
1774 auto it = mResources.find(res_handle); in platformImportResource()
1776 bool success = mVirtioGpuOps->platform_import_resource(res_handle, res_info, resource); in platformImportResource()
1780 int platformResourceInfo(int res_handle, int* width, int* height, int* internal_format) { in platformResourceInfo() argument
1781 auto it = mResources.find(res_handle); in platformResourceInfo()
1784 mVirtioGpuOps->platform_resource_info(res_handle, width, height, internal_format); in platformResourceInfo()
1797 int resourceMapInfo(uint32_t res_handle, uint32_t* map_info) { in resourceMapInfo() argument
1798 auto it = mResources.find(res_handle); in resourceMapInfo()
1806 int exportBlob(uint32_t res_handle, struct stream_renderer_handle* handle) { in exportBlob() argument
1807 auto it = mResources.find(res_handle); in exportBlob()
1857 int vulkanInfo(uint32_t res_handle, struct stream_renderer_vulkan_info* vulkan_info) { in vulkanInfo() argument
1858 auto it = mResources.find(res_handle); in vulkanInfo()
1982 VG_EXPORT void stream_renderer_resource_unref(uint32_t res_handle) { in stream_renderer_resource_unref() argument
1983 sRenderer()->unrefResource(res_handle); in stream_renderer_resource_unref()
2018 VG_EXPORT int stream_renderer_resource_attach_iov(int res_handle, struct iovec* iov, int num_iovs) { in stream_renderer_resource_attach_iov() argument
2019 return sRenderer()->attachIov(res_handle, iov, num_iovs); in stream_renderer_resource_attach_iov()
2022 VG_EXPORT void stream_renderer_resource_detach_iov(int res_handle, struct iovec** iov, in stream_renderer_resource_detach_iov() argument
2024 return sRenderer()->detachIov(res_handle, iov, num_iovs); in stream_renderer_resource_detach_iov()
2027 VG_EXPORT void stream_renderer_ctx_attach_resource(int ctx_id, int res_handle) { in stream_renderer_ctx_attach_resource() argument
2028 sRenderer()->attachResource(ctx_id, res_handle); in stream_renderer_ctx_attach_resource()
2031 VG_EXPORT void stream_renderer_ctx_detach_resource(int ctx_id, int res_handle) { in stream_renderer_ctx_detach_resource() argument
2032 sRenderer()->detachResource(ctx_id, res_handle); in stream_renderer_ctx_detach_resource()
2035 VG_EXPORT int stream_renderer_resource_get_info(int res_handle, in stream_renderer_resource_get_info() argument
2037 return sRenderer()->getResourceInfo(res_handle, info); in stream_renderer_resource_get_info()
2040 VG_EXPORT void stream_renderer_flush(uint32_t res_handle) { in stream_renderer_flush() argument
2041 sRenderer()->flushResource(res_handle); in stream_renderer_flush()
2044 VG_EXPORT int stream_renderer_create_blob(uint32_t ctx_id, uint32_t res_handle, in stream_renderer_create_blob() argument
2048 sRenderer()->createBlob(ctx_id, res_handle, create_blob, handle); in stream_renderer_create_blob()
2052 VG_EXPORT int stream_renderer_export_blob(uint32_t res_handle, in stream_renderer_export_blob() argument
2054 return sRenderer()->exportBlob(res_handle, handle); in stream_renderer_export_blob()
2057 VG_EXPORT int stream_renderer_resource_map(uint32_t res_handle, void** hvaOut, uint64_t* sizeOut) { in stream_renderer_resource_map() argument
2058 return sRenderer()->resourceMap(res_handle, hvaOut, sizeOut); in stream_renderer_resource_map()
2061 VG_EXPORT int stream_renderer_resource_unmap(uint32_t res_handle) { in stream_renderer_resource_unmap() argument
2062 return sRenderer()->resourceUnmap(res_handle); in stream_renderer_resource_unmap()
2083 VG_EXPORT int stream_renderer_platform_import_resource(int res_handle, int res_info, in stream_renderer_platform_import_resource() argument
2085 return sRenderer()->platformImportResource(res_handle, res_info, resource); in stream_renderer_platform_import_resource()
2088 VG_EXPORT int stream_renderer_platform_resource_info(int res_handle, int* width, int* height, in stream_renderer_platform_resource_info() argument
2090 return sRenderer()->platformResourceInfo(res_handle, width, height, internal_format); in stream_renderer_platform_resource_info()
2101 VG_EXPORT int stream_renderer_resource_map_info(uint32_t res_handle, uint32_t* map_info) { in stream_renderer_resource_map_info() argument
2102 return sRenderer()->resourceMapInfo(res_handle, map_info); in stream_renderer_resource_map_info()
2105 VG_EXPORT int stream_renderer_vulkan_info(uint32_t res_handle, in stream_renderer_vulkan_info() argument
2107 return sRenderer()->vulkanInfo(res_handle, vulkan_info); in stream_renderer_vulkan_info()