X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Finclude%2Fstate_tracker%2Fdrisw_api.h;h=cd5a27e2482c9da0a2fd696651d25d10dc79c04a;hb=fc76cc05e39839c0933320f28b4cc9041d4e7770;hp=c6adebb4ec5dd0628988228c96c25b51b4c3e0af;hpb=dff50ff592da7cb1d784fae794dd1647a5445bca;p=mesa.git diff --git a/src/gallium/include/state_tracker/drisw_api.h b/src/gallium/include/state_tracker/drisw_api.h index c6adebb4ec5..cd5a27e2482 100644 --- a/src/gallium/include/state_tracker/drisw_api.h +++ b/src/gallium/include/state_tracker/drisw_api.h @@ -2,34 +2,27 @@ #define _DRISW_API_H_ #include "pipe/p_compiler.h" -#include "pipe/p_screen.h" -#include "pipe/p_format.h" - -#include "state_tracker/drm_api.h" struct pipe_screen; -struct pipe_winsys; -struct pipe_buffer; -struct pipe_context; -struct pipe_texture; - struct dri_drawable; /** * This callback struct is intended for the winsys to call the loader. */ - struct drisw_loader_funcs { + void (*get_image) (struct dri_drawable *dri_drawable, + int x, int y, unsigned width, unsigned height, unsigned stride, + void *data); void (*put_image) (struct dri_drawable *dri_drawable, void *data, unsigned width, unsigned height); + void (*put_image2) (struct dri_drawable *dri_drawable, + void *data, int x, int y, unsigned width, unsigned height, unsigned stride); }; -struct drisw_create_screen_arg -{ - struct drm_create_screen_arg base; - - struct drisw_loader_funcs *lf; -}; +/** + * Implemented by the drisw target. + */ +struct pipe_screen * drisw_create_screen(struct drisw_loader_funcs *lf); #endif