diff options
author | Boris Brezillon <[email protected]> | 2019-09-14 08:00:27 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-09-18 10:28:22 +0200 |
commit | 0500c9e5145e651566b0204c3b62984919ba2450 (patch) | |
tree | 1055e2e84ba8a47510772dfe32b8d5539496dd00 /src/gallium/drivers/panfrost/pan_screen.h | |
parent | 1e47c3ee7b0d3cb4cd99db18d0919c08b476105d (diff) |
panfrost: Get rid of pan_drm.c
pan_drm.c was only meaningful when we were supporting 2 kernel drivers
(mali_kbase, and the drm one). Now that there's now kernel-driver
abstraction we're better off moving those functions were they belong:
* BO related functions in pan_bo.c
* fence related functions + query_gpu_version() in pan_screen.c
* submit related functions in pan_job.c
While at it, we rename the functions according to the place they're
being moved to.
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.h | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.h b/src/gallium/drivers/panfrost/pan_screen.h index 2f17e2dae72..2f0ebd452d5 100644 --- a/src/gallium/drivers/panfrost/pan_screen.h +++ b/src/gallium/drivers/panfrost/pan_screen.h @@ -120,32 +120,22 @@ pan_screen(struct pipe_screen *p) return (struct panfrost_screen *)p; } +struct panfrost_fence * +panfrost_fence_create(struct panfrost_context *ctx); + struct panfrost_bo * -panfrost_drm_create_bo(struct panfrost_screen *screen, size_t size, +panfrost_bo_create(struct panfrost_screen *screen, size_t size, uint32_t flags); void -panfrost_drm_mmap_bo(struct panfrost_screen *screen, struct panfrost_bo *bo); +panfrost_bo_mmap(struct panfrost_screen *screen, struct panfrost_bo *bo); void -panfrost_drm_release_bo(struct panfrost_screen *screen, struct panfrost_bo *bo, bool cacheable); +panfrost_bo_release(struct panfrost_screen *screen, struct panfrost_bo *bo, + bool cacheable); struct panfrost_bo * -panfrost_drm_import_bo(struct panfrost_screen *screen, int fd); -int -panfrost_drm_export_bo(struct panfrost_screen *screen, const struct panfrost_bo *bo); -int -panfrost_drm_submit_vs_fs_batch(struct panfrost_batch *batch); -unsigned -panfrost_drm_query_gpu_version(struct panfrost_screen *screen); +panfrost_bo_import(struct panfrost_screen *screen, int fd); int -panfrost_drm_init_context(struct panfrost_context *ctx); -void -panfrost_drm_fence_reference(struct pipe_screen *screen, - struct pipe_fence_handle **ptr, - struct pipe_fence_handle *fence); -boolean -panfrost_drm_fence_finish(struct pipe_screen *pscreen, - struct pipe_context *ctx, - struct pipe_fence_handle *fence, - uint64_t timeout); +panfrost_bo_export(struct panfrost_screen *screen, const struct panfrost_bo *bo); + struct panfrost_bo * panfrost_bo_cache_fetch( struct panfrost_screen *screen, |