d6287a94b6
Acked-by: Eric Anholt <eric@anholt.net> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4902>
28 lines
959 B
C
28 lines
959 B
C
#ifndef _DRISW_API_H_
|
|
#define _DRISW_API_H_
|
|
|
|
#include "pipe/p_compiler.h"
|
|
#include "sw_winsys.h"
|
|
|
|
struct pipe_screen;
|
|
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);
|
|
void (*put_image_shm) (struct dri_drawable *dri_drawable,
|
|
int shmid, char *shmaddr, unsigned offset, unsigned offset_x,
|
|
int x, int y, unsigned width, unsigned height, unsigned stride);
|
|
};
|
|
|
|
#endif
|