summaryrefslogtreecommitdiffstats
path: root/opengl/system/egl
Commit message (Collapse)AuthorAgeFilesLines
* Add shader version to glGetStringbohu2014-12-112-0/+7
| | | | | | | When querry shader version, current implementation returns null. This commit fixes it. Change-Id: If9b7c0ba3bb2bc48d0b7404529254834fff6ee5c
* Fix eglDestroyContext and glTexImage2Dbohu2014-11-262-6/+18
| | | | | | | | | | 1. When destroy context that is in use, EGL spec says: "If the EGL rendering context context is not current to any thread, eglDestroyContext destroys it immediately. Otherwise, context is destroyed when it becomes not current to any thread." 2. When calling glTexImage2D, should bind the correct texture first. Change-Id: I6c779b71d1e6002b8a484477921ba323acbd986e
* opengl: Fix 64-bit build.David 'Digit' Turner2014-10-311-3/+3
| | | | | | | | | | | | | A previous patch broke the 64-bit with the following error message: device/generic/goldfish/opengl/system/egl/egl.cpp: In function 'EGLBoolean eglGetConfigs(EGLDisplay, void**, EGLint, EGLint*)': device/generic/goldfish/opengl/system/egl/egl.cpp:559:33: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] *configs++ = (EGLConfig)i; This was due to the fact that the type of |i| went from uintptr_t to int. This patch fixes the issue by casting i to (EGLConfig)(uintptr_t)i. Change-Id: I3158c91d63b13eff3f8e8babb1faba8b58dc7373
* opengl: Remove compiler warnings.David 'Digit' Turner2014-10-301-4/+41
| | | | | | | | Simply remove multiple compiler warnings about unused parameter. Note that this modifies three auto-generated files, which will require fixing the 'emugen' program in the future. Change-Id: I19edce7c6480770b893d033ed6b1c65744091d62
* Remove display initialization from eglGetProcAddress APITina Zhang2014-07-231-9/+0
| | | | | | | | | | | | | | We don't need to do the initialization in the eglGetProcAddress API. The work can be finished in the eglInitialize API. When zygote pre-loading resources, eglGetProcAddress will be called. If we let eglGetProcAddress do the display initialization, zygote will get the "qemu-pipe" handle of the "opengles" service. This is bad, because all the java processes which forked from zygote will get the same handle from zygote. Then the host service cannot distinguish from the device threads, and this will lead the emulator to crash. Change-Id: I74ddc0db5c91c84afe0916f118937ef8f891b162 Signed-off-by: Tina Zhang <tina.zhang@intel.com> Signed-off-by: WeixingX Tian <weixingx.tian@intel.com>
* Support GLES acceleration in 64bit emulator on device sideTina Zhang2014-04-092-9/+28
| | | | | | | Support both 32bit and 64bit emulator GLES acceleration. Change-Id: Ibd8b970d23937ae40732324706074ff00f433a14 Signed-off-by: Tina Zhang <tina.zhang@intel.com>
* Merge commit '828bd482a1aeacf96d5f3a3e0701029d9f890c5f' into HEADThe Android Open Source Project2013-11-221-2/+0
|\
| * am 3bd0e079: Merge "Return EGL_FALSE if eglChooseConfig failed to find any ↵Jesse Hall2013-08-131-0/+2
| |\ | | | | | | | | | | | | | | | | | | matching configs" * commit '3bd0e079a9d5321f952c2871fb453775810879f7': Return EGL_FALSE if eglChooseConfig failed to find any matching configs
| * | get rid of HAL pixelformats 5551 and 4444Mathias Agopian2013-07-261-2/+0
| | | | | | | | | | | | Change-Id: If69c5cdb02dd8308963165a09b5d7fe3b00077ae
* | | Modify the build targets for goldfish from to include aosp*.Raghu Gandham2013-11-111-1/+1
| |/ |/| | | | | | | | | | | This allows egl.cfg to be copied to $(TARGET_OUT)/lib/egl for aosp* build targets. This patch fixes the emulator to boot with "-gpu on" flag. Change-Id: I6c291a4a0fd82242d7f2ac41229be202aa7c71e0
* | Return EGL_FALSE if eglChooseConfig failed to find any matching configsMartin Storsjo2013-08-111-0/+2
|/ | | | | | | | | | | Technically, we shouldn't have touched *num_config at all in this case, but the remote interface to the host doesn't return a separate boolean return value, only the number of matching configs. This makes sure that callers that only check the return value of eglChooseConfig notice a failure to find configs. Change-Id: I7f660a4a5b8306184608a86c34329d3163ad05ba
* migrate opengl and system from development/toolskeunyoung2013-03-1110-0/+2384
- components under system are moved one directory up like all other HALs Change-Id: I03b870b870d83b247ac398cadfb155f03c9adfa0