summaryrefslogtreecommitdiff
path: root/src/gallium/include/state_tracker/drisw_api.h
blob: 36bef087a4f6855379c6479bdbe97a416a86c3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _DRISW_API_H_
#define _DRISW_API_H_

#include "pipe/p_compiler.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,
                          int x, int y, unsigned width, unsigned height, unsigned stride);
};

#endif