diff options
Diffstat (limited to 'src/gallium/auxiliary/renderonly/renderonly.h')
-rw-r--r-- | src/gallium/auxiliary/renderonly/renderonly.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/renderonly/renderonly.h b/src/gallium/auxiliary/renderonly/renderonly.h index 70641c45878..6a89c29e2ef 100644 --- a/src/gallium/auxiliary/renderonly/renderonly.h +++ b/src/gallium/auxiliary/renderonly/renderonly.h @@ -34,8 +34,6 @@ struct renderonly_scanout { uint32_t handle; uint32_t stride; - - struct pipe_resource *prime; }; struct renderonly { @@ -59,7 +57,8 @@ struct renderonly { * to be done in flush_resource(..) like a resolve to linear. */ struct renderonly_scanout *(*create_for_resource)(struct pipe_resource *rsc, - struct renderonly *ro); + struct renderonly *ro, + struct winsys_handle *out_handle); int kms_fd; int gpu_fd; }; @@ -68,14 +67,13 @@ struct renderonly * renderonly_dup(const struct renderonly *ro); static inline struct renderonly_scanout * -renderonly_scanout_for_resource(struct pipe_resource *rsc, struct renderonly *ro) +renderonly_scanout_for_resource(struct pipe_resource *rsc, + struct renderonly *ro, + struct winsys_handle *out_handle) { - return ro->create_for_resource(rsc, ro); + return ro->create_for_resource(rsc, ro, out_handle); } -struct renderonly_scanout * -renderonly_scanout_for_prime(struct pipe_resource *rsc, struct renderonly *ro); - void renderonly_scanout_destroy(struct renderonly_scanout *scanout, struct renderonly *ro); @@ -99,13 +97,15 @@ renderonly_get_handle(struct renderonly_scanout *scanout, */ struct renderonly_scanout * renderonly_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc, - struct renderonly *ro); + struct renderonly *ro, + struct winsys_handle *out_handle); /** * Import GPU resource into scanout hw. */ struct renderonly_scanout * renderonly_create_gpu_import_for_resource(struct pipe_resource *rsc, - struct renderonly *ro); + struct renderonly *ro, + struct winsys_handle *out_handle); #endif /* RENDERONLY_H_ */ |