Add support for X11 binaries and PVR EXA driver
authorAnand Balagopalakrishnan <anandb@ti.com>
Wed, 11 Dec 2013 08:21:38 +0000 (13:51 +0530)
committerAnand Balagopalakrishnan <anandb@ti.com>
Wed, 11 Dec 2013 08:21:38 +0000 (13:51 +0530)
Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
45 files changed:
Makefile
README
targetfs/bin/pvrsrvinit
targetfs/bin/xeglinfo [new file with mode: 0755]
targetfs/bin/xgles1test1 [new file with mode: 0755]
targetfs/bin/xgles2test1 [new file with mode: 0755]
targetfs/bin/xmultiegltest [new file with mode: 0755]
targetfs/exa/omap_pvr_drv.la [new file with mode: 0644]
targetfs/exa/omap_pvr_drv.so [new file with mode: 0755]
targetfs/lib/gbm/gbm_pvr.so [changed from file to symlink]
targetfs/lib/gbm/gbm_pvr.so.1.9.6.0
targetfs/lib/libEGL.so [changed from file to symlink]
targetfs/lib/libEGL.so.1 [changed from file to symlink]
targetfs/lib/libEGL.so.1.9.6.0
targetfs/lib/libGLESv1_CM.so [changed from file to symlink]
targetfs/lib/libGLESv1_CM.so.1 [changed from file to symlink]
targetfs/lib/libGLESv1_CM.so.1.9.6.0
targetfs/lib/libGLESv2.so [changed from file to symlink]
targetfs/lib/libGLESv2.so.1.9.6.0
targetfs/lib/libGLESv2.so.2 [changed from file to symlink]
targetfs/lib/libIMGegl.so [changed from file to symlink]
targetfs/lib/libIMGegl.so.1.9.6.0
targetfs/lib/libPVRScopeServices.so [changed from file to symlink]
targetfs/lib/libPVRScopeServices.so.1.9.6.0
targetfs/lib/libglslcompiler.so [changed from file to symlink]
targetfs/lib/libglslcompiler.so.1.9.6.0
targetfs/lib/libpvr2d.so [changed from file to symlink]
targetfs/lib/libpvr2d.so.1.9.6.0
targetfs/lib/libpvr_wlegl.so [changed from file to symlink]
targetfs/lib/libpvr_wlegl.so.1.9.6.0
targetfs/lib/libpvrws_KMS.so [changed from file to symlink]
targetfs/lib/libpvrws_KMS.so.1.9.6.0
targetfs/lib/libpvrws_OMAPDRI2.so [changed from file to symlink]
targetfs/lib/libpvrws_OMAPDRI2.so.1.9.6.0
targetfs/lib/libpvrws_WAYLAND.so [changed from file to symlink]
targetfs/lib/libpvrws_WAYLAND.so.1.9.6.0
targetfs/lib/libsrv_init.so [changed from file to symlink]
targetfs/lib/libsrv_init.so.1.9.6.0
targetfs/lib/libsrv_um.so [changed from file to symlink]
targetfs/lib/libsrv_um.so.1.9.6.0
targetfs/lib/libusc.so [changed from file to symlink]
targetfs/lib/libusc.so.1.9.6.0
targetfs/share/sgx-lib/glsltest1_fragshaderA.txt [new file with mode: 0644]
targetfs/share/sgx-lib/glsltest1_fragshaderB.txt [new file with mode: 0644]
targetfs/share/sgx-lib/glsltest1_vertshader.txt [new file with mode: 0644]

index a07d05015842f1e0682f8b4fbdba83d36f50d98e..39af1d533d6bbc761d323f4a8976b009e211454c 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,10 @@ SRCDIR = ./targetfs
 
 prefix = /usr
 libdir = ${prefix}/lib
-bindir = ${prefix}/bin
 incdir = ${prefix}/include
+bindir = ${prefix}/bin
+shrdir = ${prefix}/share
+exadir = ${prefix}/lib/xorg/modules/drivers
 
 all:
 
@@ -12,6 +14,10 @@ install:
        mkdir -p ${DESTDIR}${libdir}
        mkdir -p ${DESTDIR}${incdir}
        mkdir -p ${DESTDIR}${bindir}
+       mkdir -p ${DESTDIR}${shrdir}
+       mkdir -p ${DESTDIR}${exadir}
        cp -ar ${SRCDIR}/lib/* ${DESTDIR}${libdir}
        cp -ar ${SRCDIR}/include/* ${DESTDIR}${incdir}
        cp -ar ${SRCDIR}/bin/* ${DESTDIR}${bindir}
+       cp -ar ${SRCDIR}/share/* ${DESTDIR}${shrdir}
+       cp -ar ${SRCDIR}/exa/* ${DESTDIR}${exadir}
diff --git a/README b/README
index 5284065ebe40bbbfb044e720d325ed7b72390032..4ffdeb766905401b9acb248e01b785e173a2ded7 100644 (file)
--- a/README
+++ b/README
@@ -36,7 +36,7 @@ Highlights
 This is version 1.9.11 of the TI DDK. It is based on IMG's
 1.9 DDK post-beta engineering drop (ED2253347) delivery to TI.
 
-This release supports Wayland 1.0.6
+This release supports Wayland 1.0.6 and X11
 
 DDK dependencies: gcc 4.7.3, glibc 2.15, libdrm 2.4.41, libgbm 9.0.0, Wayland
 1.0.6
@@ -45,7 +45,7 @@ DDK dependencies: gcc 4.7.3, glibc 2.15, libdrm 2.4.41, libgbm 9.0.0, Wayland
 Limitations
 -----------
 1. Spurious "deadlock" messages when loading omapdrm_pvr kernel module
-2. Supports only DRM/KMS and Wayland. No support for X11 window system or Null WS
+2. Supports only DRM/KMS, Wayland and X11. No support for Null Window System
 3. Kernel panic due to drm_kms_helper sometimes. Reset the board if it occurs
 4. Wayland simple-egl example throws a gbm_import_bo error
 5. Mmap error observed with Weston with cursor surfaces
@@ -57,8 +57,7 @@ Package Contents
 targetfs/
 ---------
 
-The 'targetfs' folder contains the user mode modules of 
-SGX DDK for OMAP5/DRA7xx.
+The 'targetfs' folder contains the user mode modules of SGX DDK for OMAP5/DRA7xx.
 
 
 *********************************************************************
@@ -85,6 +84,10 @@ host $ export DISCIMAGE=<path_to_target_root_filesystem>
 host $ cd <path_to_package>
 host $ sudo -E make install
 
+PVR EXA driver is copied into /usr/lib/xorg/modules/drivers of the target 
+filesystem. The SDK system integrator should copy the EXA driver into 
+the relevant X11 driver directory.
+
 
 *********************************************************************
 *                         LOAD                                      *
@@ -98,7 +101,8 @@ OMAP DRM
 
 The omapdrm_pvr driver is expected to be loaded before an OpenGLES 
 application can be exercised. The pvrsrvinit handles the loading of the 
-necessary DRM driver.
+necessary DRM driver. This step will not be required for X11 window 
+system with PVR EXA driver.
 
 target $ pvrsrvinit
 
@@ -120,3 +124,11 @@ The DDK has been verified using Weston compositor that has been included
 with the SDK file system. This application uses Wayland.
 
 target $ weston --connector=4 
+
+The DDK has been verified with X11 server included in the SDK file system.
+DRI2 support has been validated.
+
+target $ export DISPLAY=:0
+target $ xinit &
+target $ xgles2test1
+target $ xmultiegltest
index c56c909161a3e7a8556fa66202d26e435aa16ad3..c4efc967fb718d0929aed210df9a1bef3154c75b 100755 (executable)
Binary files a/targetfs/bin/pvrsrvinit and b/targetfs/bin/pvrsrvinit differ
diff --git a/targetfs/bin/xeglinfo b/targetfs/bin/xeglinfo
new file mode 100755 (executable)
index 0000000..3fdd3fc
Binary files /dev/null and b/targetfs/bin/xeglinfo differ
diff --git a/targetfs/bin/xgles1test1 b/targetfs/bin/xgles1test1
new file mode 100755 (executable)
index 0000000..c883e36
Binary files /dev/null and b/targetfs/bin/xgles1test1 differ
diff --git a/targetfs/bin/xgles2test1 b/targetfs/bin/xgles2test1
new file mode 100755 (executable)
index 0000000..3e96336
Binary files /dev/null and b/targetfs/bin/xgles2test1 differ
diff --git a/targetfs/bin/xmultiegltest b/targetfs/bin/xmultiegltest
new file mode 100755 (executable)
index 0000000..c7fe9ee
Binary files /dev/null and b/targetfs/bin/xmultiegltest differ
diff --git a/targetfs/exa/omap_pvr_drv.la b/targetfs/exa/omap_pvr_drv.la
new file mode 100644 (file)
index 0000000..5eb0cc7
--- /dev/null
@@ -0,0 +1,41 @@
+# omap_pvr_drv.la - a libtool library file
+# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='omap_pvr_drv.so'
+
+# Names of this library.
+library_names='omap_pvr_drv.so omap_pvr_drv.so omap_pvr_drv.so'
+
+# The name of the static archive.
+old_library=''
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags=''
+
+# Libraries that this one depends upon.
+dependency_libs=' -lpixman-1 -lpciaccess -ldrm -ldrm_omap -lpvr2d'
+
+# Names of additional weak libraries provided by this library
+weak_library_names=''
+
+# Version information for omap_pvr_drv.
+current=0
+age=0
+revision=0
+
+# Is this an already installed library?
+installed=no
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=yes
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='/usr/lib/xorg/modules/drivers'
diff --git a/targetfs/exa/omap_pvr_drv.so b/targetfs/exa/omap_pvr_drv.so
new file mode 100755 (executable)
index 0000000..ad857f1
Binary files /dev/null and b/targetfs/exa/omap_pvr_drv.so differ
deleted file mode 100644 (file)
index fd50e77b36d8702db7d7c0a9bb1b32ea09d983a8..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/gbm/gbm_pvr.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..27ece876e8d6d6e8536629a365765637430af82f
--- /dev/null
@@ -0,0 +1 @@
+gbm_pvr.so.1.9.6.0
\ No newline at end of file
index fd50e77b36d8702db7d7c0a9bb1b32ea09d983a8..5dccd31681bd5f5b353ea07de57c2cc87f004292 100644 (file)
Binary files a/targetfs/lib/gbm/gbm_pvr.so.1.9.6.0 and b/targetfs/lib/gbm/gbm_pvr.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 223c0aef8f5875a9934ccef3094cf0d822f4dacd..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libEGL.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..62c6fdc5bd404f13233fac05ca0e70022c2ccc33
--- /dev/null
@@ -0,0 +1 @@
+libEGL.so.1
\ No newline at end of file
deleted file mode 100644 (file)
index 223c0aef8f5875a9934ccef3094cf0d822f4dacd..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libEGL.so.1 and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..a32a6e89f1c6e7535bf62652acb5224743db9a92
--- /dev/null
@@ -0,0 +1 @@
+libEGL.so.1.9.6.0
\ No newline at end of file
index 223c0aef8f5875a9934ccef3094cf0d822f4dacd..99d074ddaa4d25e625582191af79a6a636f5c6cc 100644 (file)
Binary files a/targetfs/lib/libEGL.so.1.9.6.0 and b/targetfs/lib/libEGL.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 0b11c17a789011c1a7c50bdd4685939af8d9e44b..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libGLESv1_CM.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..d8752e2d9e4c69e25d20ea95225f0a934e88e40b
--- /dev/null
@@ -0,0 +1 @@
+libGLESv1_CM.so.1
\ No newline at end of file
deleted file mode 100644 (file)
index 0b11c17a789011c1a7c50bdd4685939af8d9e44b..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libGLESv1_CM.so.1 and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..b93355dc4806d1638666d5a2dee5694c1b45a835
--- /dev/null
@@ -0,0 +1 @@
+libGLESv1_CM.so.1.9.6.0
\ No newline at end of file
index 0b11c17a789011c1a7c50bdd4685939af8d9e44b..1e7663217cb5f336f68d53e06ad90fb4f0885b15 100644 (file)
Binary files a/targetfs/lib/libGLESv1_CM.so.1.9.6.0 and b/targetfs/lib/libGLESv1_CM.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 96b8dac22b36ea21807a3fee7f2a8db3a5b33855..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libGLESv2.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..243b5fe39e36dece40a7b6875c7e68d73d8e146a
--- /dev/null
@@ -0,0 +1 @@
+libGLESv2.so.2
\ No newline at end of file
index 96b8dac22b36ea21807a3fee7f2a8db3a5b33855..d55e020cd2f2404f415ca80a91a48c30e333b1fb 100644 (file)
Binary files a/targetfs/lib/libGLESv2.so.1.9.6.0 and b/targetfs/lib/libGLESv2.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 96b8dac22b36ea21807a3fee7f2a8db3a5b33855..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libGLESv2.so.2 and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..bd038deeaf30a4a5361f4a5653673f1c21533711
--- /dev/null
@@ -0,0 +1 @@
+libGLESv2.so.1.9.6.0
\ No newline at end of file
deleted file mode 100644 (file)
index 9f59ceb31547fdf6c08aee0d98100dfd7287bf22..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libIMGegl.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..2817815dbc48bfd559de697d7bad71fd6f9d7144
--- /dev/null
@@ -0,0 +1 @@
+libIMGegl.so.1.9.6.0
\ No newline at end of file
index 9f59ceb31547fdf6c08aee0d98100dfd7287bf22..73b93007f59ce71033e77471618360c2f0c54770 100644 (file)
Binary files a/targetfs/lib/libIMGegl.so.1.9.6.0 and b/targetfs/lib/libIMGegl.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 7d68b493ee3fbdd4ce19a3caaed19479c1ebaec4..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libPVRScopeServices.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..d0fceeae0b8d5fad93fe097bdd893c4dcd40ddcd
--- /dev/null
@@ -0,0 +1 @@
+libPVRScopeServices.so.1.9.6.0
\ No newline at end of file
index 7d68b493ee3fbdd4ce19a3caaed19479c1ebaec4..0cabb29f4bd7cdc5e56c4583a7ee30cd2c3c742e 100644 (file)
Binary files a/targetfs/lib/libPVRScopeServices.so.1.9.6.0 and b/targetfs/lib/libPVRScopeServices.so.1.9.6.0 differ
deleted file mode 100644 (file)
index de77b7d65edc2598fefdf16f8bfd326f454103fa..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libglslcompiler.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..6660c80b793d9f5629de2a755aa74c4492e313ec
--- /dev/null
@@ -0,0 +1 @@
+libglslcompiler.so.1.9.6.0
\ No newline at end of file
index de77b7d65edc2598fefdf16f8bfd326f454103fa..9baa281ebf2ce9cb6b470ef5b3004a9755b5da41 100644 (file)
Binary files a/targetfs/lib/libglslcompiler.so.1.9.6.0 and b/targetfs/lib/libglslcompiler.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 62e12602f3e38d46b6e1cf865b050ecf11d1adae..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libpvr2d.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..bbbd7eb89b2dfa373061720dd06b292dba9703fa
--- /dev/null
@@ -0,0 +1 @@
+libpvr2d.so.1.9.6.0
\ No newline at end of file
index 62e12602f3e38d46b6e1cf865b050ecf11d1adae..2e663971c9b13ffae4ac28c5a35269fb50935da8 100644 (file)
Binary files a/targetfs/lib/libpvr2d.so.1.9.6.0 and b/targetfs/lib/libpvr2d.so.1.9.6.0 differ
deleted file mode 100644 (file)
index bf21099669229fc12da3020c34ea9303fc23b043..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libpvr_wlegl.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..8e9df1930070297a703ae1e259e816233d70bdd5
--- /dev/null
@@ -0,0 +1 @@
+libpvr_wlegl.so.1.9.6.0
\ No newline at end of file
index bf21099669229fc12da3020c34ea9303fc23b043..8a00dc5a5b277620b08966da46c19690607e19a9 100644 (file)
Binary files a/targetfs/lib/libpvr_wlegl.so.1.9.6.0 and b/targetfs/lib/libpvr_wlegl.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 9ed51c075174cf7467cf840838b99cb381b1b8cb..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libpvrws_KMS.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..d2075df5549628ec42e6fc8a35c56d049abad8ad
--- /dev/null
@@ -0,0 +1 @@
+libpvrws_KMS.so.1.9.6.0
\ No newline at end of file
index 9ed51c075174cf7467cf840838b99cb381b1b8cb..8d4289459c946963d886853c44c1ff7b42eb53b9 100644 (file)
Binary files a/targetfs/lib/libpvrws_KMS.so.1.9.6.0 and b/targetfs/lib/libpvrws_KMS.so.1.9.6.0 differ
deleted file mode 100644 (file)
index fa8ad1806f92959166d49576da60bbc407eae655..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libpvrws_OMAPDRI2.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..97b74a8a14de31bc146a76da435663bd3623fe86
--- /dev/null
@@ -0,0 +1 @@
+libpvrws_OMAPDRI2.so.1.9.6.0
\ No newline at end of file
index fa8ad1806f92959166d49576da60bbc407eae655..7d2f28a43b471f94dd9b862d25941119705ca888 100644 (file)
Binary files a/targetfs/lib/libpvrws_OMAPDRI2.so.1.9.6.0 and b/targetfs/lib/libpvrws_OMAPDRI2.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 522732bb4cdc391be8a1a71dcc3798fe731d5327..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libpvrws_WAYLAND.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..c1fe5a7e10017cc6cb33e06d962384f218189f4f
--- /dev/null
@@ -0,0 +1 @@
+libpvrws_WAYLAND.so.1.9.6.0
\ No newline at end of file
index 522732bb4cdc391be8a1a71dcc3798fe731d5327..5714848ad861d05946675c6631c09fe474913028 100644 (file)
Binary files a/targetfs/lib/libpvrws_WAYLAND.so.1.9.6.0 and b/targetfs/lib/libpvrws_WAYLAND.so.1.9.6.0 differ
deleted file mode 100644 (file)
index a659a22418d1d2b4ae1a7a23ef8ec49a11ffed36..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libsrv_init.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..2aab87deeb2bb5305998c6f116888bc18ee175d1
--- /dev/null
@@ -0,0 +1 @@
+libsrv_init.so.1.9.6.0
\ No newline at end of file
index a659a22418d1d2b4ae1a7a23ef8ec49a11ffed36..c1444cff2334379da038f68a8bcf912c3a3ab5b3 100644 (file)
Binary files a/targetfs/lib/libsrv_init.so.1.9.6.0 and b/targetfs/lib/libsrv_init.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 671193f47976b0010b4a357bc8bf48da594a03eb..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libsrv_um.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..2c44810b09d6d66b5a0745f897137073f3401323
--- /dev/null
@@ -0,0 +1 @@
+libsrv_um.so.1.9.6.0
\ No newline at end of file
index 671193f47976b0010b4a357bc8bf48da594a03eb..3e94993dcb165e729b70b69f1d91d63e5506e59f 100644 (file)
Binary files a/targetfs/lib/libsrv_um.so.1.9.6.0 and b/targetfs/lib/libsrv_um.so.1.9.6.0 differ
deleted file mode 100644 (file)
index 002dd9ed7a719cc6d7330e277de11c5670c3703f..0000000000000000000000000000000000000000
Binary files a/targetfs/lib/libusc.so and /dev/null differ
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..cbf983959618f14bc21cc4455499f225471b36dd
--- /dev/null
@@ -0,0 +1 @@
+libusc.so.1.9.6.0
\ No newline at end of file
index 002dd9ed7a719cc6d7330e277de11c5670c3703f..39569e193c83c3e394e504b2722f7f1718db5fb2 100644 (file)
Binary files a/targetfs/lib/libusc.so.1.9.6.0 and b/targetfs/lib/libusc.so.1.9.6.0 differ
diff --git a/targetfs/share/sgx-lib/glsltest1_fragshaderA.txt b/targetfs/share/sgx-lib/glsltest1_fragshaderA.txt
new file mode 100644 (file)
index 0000000..7188d88
--- /dev/null
@@ -0,0 +1,6 @@
+varying mediump vec4 basecolor;
+
+void main(void)
+{
+       gl_FragColor =  basecolor;
+}
diff --git a/targetfs/share/sgx-lib/glsltest1_fragshaderB.txt b/targetfs/share/sgx-lib/glsltest1_fragshaderB.txt
new file mode 100644 (file)
index 0000000..cba5183
--- /dev/null
@@ -0,0 +1,11 @@
+varying highp vec2 texcoord;
+varying mediump vec4 basecolor;
+
+uniform sampler2D basetexture;
+
+void main(void)
+{
+       mediump vec4 texlookup = texture2D(basetexture, texcoord);
+
+       gl_FragColor = texlookup * basecolor;
+}
diff --git a/targetfs/share/sgx-lib/glsltest1_vertshader.txt b/targetfs/share/sgx-lib/glsltest1_vertshader.txt
new file mode 100644 (file)
index 0000000..99f9262
--- /dev/null
@@ -0,0 +1,17 @@
+varying vec2 texcoord;
+varying mediump vec4 basecolor;
+
+attribute vec4 position;
+attribute vec4 inputcolor;
+attribute vec2 inputtexcoord;
+
+uniform mat4 mvp;
+
+
+void main(void)
+{
+       basecolor = inputcolor;
+       texcoord = inputtexcoord;
+
+       gl_Position = mvp * position;
+}
\ No newline at end of file