aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/gallium/include/state_tracker/drisw_api.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2015-02-24 07:45:14 +0100
committermarha <marha@users.sourceforge.net>2015-02-24 07:45:14 +0100
commiteef70231353a6103f47fcae88a6e89e765e5cd47 (patch)
treeff91167b1dc242aa72f083a95e0f1152bcd3de38 /mesalib/src/gallium/include/state_tracker/drisw_api.h
parentac2c8a704aac7569f4ae85b890a546644bd86c60 (diff)
downloadvcxsrv-eef70231353a6103f47fcae88a6e89e765e5cd47.tar.gz
vcxsrv-eef70231353a6103f47fcae88a6e89e765e5cd47.tar.bz2
vcxsrv-eef70231353a6103f47fcae88a6e89e765e5cd47.zip
Added missing files for mesa
Diffstat (limited to 'mesalib/src/gallium/include/state_tracker/drisw_api.h')
-rw-r--r--mesalib/src/gallium/include/state_tracker/drisw_api.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/mesalib/src/gallium/include/state_tracker/drisw_api.h b/mesalib/src/gallium/include/state_tracker/drisw_api.h
new file mode 100644
index 000000000..328440cf5
--- /dev/null
+++ b/mesalib/src/gallium/include/state_tracker/drisw_api.h
@@ -0,0 +1,25 @@
+#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 (*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);
+};
+
+/**
+ * Implemented by the drisw target.
+ */
+struct pipe_screen * drisw_create_screen(struct drisw_loader_funcs *lf);
+
+#endif