summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWuZhen <wuzhen@jidemail.com>2016-06-18 21:57:23 +0800
committerMauro Rossi <issor.oruam@gmail.com>2016-11-01 20:41:59 +0100
commit61025f0b269c8c31ec76dba5f72d98590d001949 (patch)
tree8fa72e679966ebc183b85be8360cabcdec2871db /include
parent74f550427c7fffe637917e2caa79a6bb6c378db4 (diff)
downloadexternal_mesa3d-61025f0b269c8c31ec76dba5f72d98590d001949.zip
external_mesa3d-61025f0b269c8c31ec76dba5f72d98590d001949.tar.gz
external_mesa3d-61025f0b269c8c31ec76dba5f72d98590d001949.tar.bz2
android: support swrast
System boots up with gles_mesa/softpipe/llvmpipe. NO_REF_TASK Tested: local run Change-Id: I629ed0ca9fad12e32270eb8e8bfa9f7681b68474 Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index d0b1bc6..69591f6 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -62,6 +62,7 @@ typedef struct __DRIdrawableRec __DRIdrawable;
typedef struct __DRIconfigRec __DRIconfig;
typedef struct __DRIframebufferRec __DRIframebuffer;
typedef struct __DRIversionRec __DRIversion;
+typedef struct __DRIimageRec __DRIimage;
typedef struct __DRIcoreExtensionRec __DRIcoreExtension;
typedef struct __DRIextensionRec __DRIextension;
@@ -819,7 +820,9 @@ struct __DRIlegacyExtensionRec {
* conjunction with the core extension.
*/
#define __DRI_SWRAST "DRI_SWRast"
-#define __DRI_SWRAST_VERSION 4
+#define __DRI_SWRAST_VERSION 5
+
+struct winsys_handle;
struct __DRIswrastExtensionRec {
__DRIextension base;
@@ -867,6 +870,10 @@ struct __DRIswrastExtensionRec {
const __DRIconfig ***driver_configs,
void *loaderPrivate);
+ __DRIimage *(*createImageFromWinsys)(__DRIscreen *_screen,
+ int width, int height, int format,
+ int num_handles, struct winsys_handle *whandle,
+ void *loaderPrivate);
};
/** Common DRI function definitions, shared among DRI2 and Image extensions
@@ -1264,7 +1271,6 @@ enum __DRIChromaSiting {
#define __BLIT_FLAG_FLUSH 0x0001
#define __BLIT_FLAG_FINISH 0x0002
-typedef struct __DRIimageRec __DRIimage;
typedef struct __DRIimageExtensionRec __DRIimageExtension;
struct __DRIimageExtensionRec {
__DRIextension base;