Path: blob/21.2-virgl/src/gallium/include/frontend/drisw_api.h
4565 views
#ifndef _DRISW_API_H_1#define _DRISW_API_H_23#include "pipe/p_compiler.h"4#include "sw_winsys.h"56struct pipe_screen;7struct dri_drawable;89/**10* This callback struct is intended for the winsys to call the loader.11*/12struct drisw_loader_funcs13{14void (*get_image) (struct dri_drawable *dri_drawable,15int x, int y, unsigned width, unsigned height, unsigned stride,16void *data);17void (*put_image) (struct dri_drawable *dri_drawable,18void *data, unsigned width, unsigned height);19void (*put_image2) (struct dri_drawable *dri_drawable,20void *data, int x, int y, unsigned width, unsigned height, unsigned stride);21void (*put_image_shm) (struct dri_drawable *dri_drawable,22int shmid, char *shmaddr, unsigned offset, unsigned offset_x,23int x, int y, unsigned width, unsigned height, unsigned stride);24};2526#endif272829