summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
Commit message (Collapse)AuthorAgeFilesLines
* libagl: Fix buffer read overrun in eglCreatePbufferSurfaceJesse Hall2016-03-221-1/+1
| | | | | | | The code was assuming that EGL_NONE==0, which isn't true. Bug: 23403170 Change-Id: Ic1eccdef086b4d610bd78dbb6b2ae883c91dc322
* Check that width and height parameters are small.Michael Lentine2015-05-291-4/+31
| | | | | | | | The product of width and height should be less than UINT32_MAX (in practice smaller). Adding the checks prevents overflows when allocating buffers. Bug: 20726612 Change-Id: I9769edf0688a9bfe69906d49fa0540cadf4c49b0
* [MIPS] Build libGLES for mips64, mips32r6Duane Sand2015-01-123-3/+5
| | | | | | For now, use generic C code instead of assembler. Change-Id: I604ecdcde2d5373f1f68ab97a63a80667b630846
* Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-1/+0
| | | | Change-Id: I62904c410a66f256da8253764577acae18f964f8
* opengl: fix UAL conformitysynergy dev2014-04-022-2/+2
| | | | | | GAS assumes .align 2 if .align only is set, however the UAL doesn't enforce this assumption. Change-Id: I88b567dc84ee8f04a13f2b8e80c3ee41530a9e49
* native frameworks: 64-bit compile issuesMark Salyzyn2014-03-128-42/+46
| | | | | | | - Fix format (print/scanf) - Suppress unused argument warning messages (bonus) Change-Id: I05c7724d2aba6da1e82a86000e11f3a8fef4e728
* libagl: support multilib buildColin Cross2014-02-141-11/+7
| | | | | | | Use LOCAL_SRC_FILES_arch and LOCAL_CFLAGS_arch to support building for multiple architectures. Change-Id: I829c1bea880739bf8184df4006d0a481ffccc5c2
* frameworks/native: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATHColin Cross2014-01-271-1/+1
| | | | | | | LOCAL_MODULE_PATH doesn't work for multiarch builds, replace it with LOCAL_MODULE_RELATIVE_PATH. Change-Id: I4e4ceec61d026bbe74ba604554c06104bde42e5e
* libGLES_android: fix 64-bit compile errorsColin Cross2014-01-243-10/+14
| | | | | | | | | Fix size of vertex_t on 64-bit architectures Fix __get_tls casts, the TLS area is a void** Cast through uintptr_t to store integers in a pointer Use %zu to print size_t Change-Id: I91079ec76025237e6d2081784c5348518b0ce122
* get rid of HAL pixelformats 5551 and 4444Mathias Agopian2013-07-261-2/+0
| | | | Change-Id: I39409103144c1ba09078c4ddc323a58987fb09ea
* Add liblogYing Wang2013-04-091-1/+1
| | | | | Bug: 8580410 Change-Id: I2ca4fa00dde0b574df3619134836bcb9315bd506
* am e3a396b2: am 906bd042: Merge "[MIPS] Add MIPS architecture support to libagl"Keun-young Park2013-03-294-1/+113
|\ | | | | | | | | * commit 'e3a396b25d53cc9ae61e3a2f0daeaa68ac1ba5a1': [MIPS] Add MIPS architecture support to libagl
| * [MIPS] Add MIPS architecture support to libaglDuane Sand2013-03-274-1/+113
| | | | | | | | Change-Id: I30eb92857a2a6ea867fe0ee45109f17609043aae
* | When disconnecting a surface, cancel don't queue the bufferJesse Hall2013-03-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This isn't really right either, but avoids having an extra buffer that the consumer has to drain which it might not be expecting. To be correct, disconnecting a surface from a context should retain the current buffer and continue using it when reconnected. The buffer should only be canceled when the surface is destroyed. That will wait for a later change. Bug: 8320762 Change-Id: I5efa39c741193ca4f5612ea9de001ccbb683b345
* | Defer destroying surfaces until not currentJesse Hall2013-03-071-5/+12
|/ | | | | Bug: 8320762 Change-Id: I1320cf87923bcc5b795a86a13193363a49e29653
* Simplify OpenGL TLS access on ARM.Elliott Hughes2013-02-131-9/+0
| | | | | | bionic now assumes the TLS register is available, so OpenGL can too. Change-Id: If2b56a4c08de9f887759b78f70022026a181dc47
* am 516efc1b: am 8a2b5423: Merge "libagl: Transform the vertex if using eye ↵Mathias Agopian2012-09-191-0/+7
|\ | | | | | | | | | | | | space lighting with point lights" * commit '516efc1bea1c05492c5d4636a589cfc686661842': libagl: Transform the vertex if using eye space lighting with point lights
| * libagl: Transform the vertex if using eye space lighting with point lightsMartin Storsjo2012-07-121-0/+7
| | | | | | | | | | | | | | This fixes lighting when using point lights, when eye space lighting is used (which is the default). Change-Id: I0cd0d2329893d6b5f8af3b1e595274c2076fc322
* | Update ANativeWindow clients for syncJamie Gennis2012-06-202-11/+21
|/ | | | | | | This change updates the uses of ANativeWindow to use the new ANW functions that accept and return Sync HAL fence file descriptors. Change-Id: I3ca648b6ac33f7360e86754f924aa072f95242f6
* Implement the EGL_KHR_fence_sync in libaglJesse Hall2012-05-222-0/+78
| | | | | | | | | Implementing this in libagl allows us to start using it for SurfaceTexture in emulator builds, which is necessary to avoid corruption in the Browser when using the host-accelerated GL path. Bug: 6515813 Change-Id: Icafba8687cb5d010d8d42b3866b298d2be984fc9
* fix EGL_CLIENT_STRINGMathias Agopian2012-05-211-1/+1
| | | | | | | | it should read OpenGL_ES (with an underscore) Bug: 6529643 Change-Id: I7caf07793bffe5a8dcceaff496a222077486fc87
* libagl shouldn't export anythingMathias Agopian2012-02-271-18/+640
| | | | Change-Id: Ia823dbc56aab2a0b8a6063df4348fe6baac124c6
* remove dependency on android_native{s_priv|buffer}.hMathias Agopian2012-02-243-6/+3
| | | | Change-Id: Ie4b95f7061c240f37c504414259f92d72c4ffc89
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-082-5/+5
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-061-1/+1
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-033-10/+10
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* rework a bit how we manage EGL extensionsMathias Agopian2011-11-141-0/+5
| | | | | | | | | | | | | - don't advertise extensions that are not supported by any implementation - remove EGL_ANDROID_swap_rectangle which is not implemented by anybody and confuses people - add some comments about mandatory extensions Bug: 5428001 Change-Id: Id8dc48116ac1d1eb79ec9ef55d03e29d4257c1f3
* implement EGL_TEXTURE_EXTERNAL_OES in libaglMathias Agopian2011-08-182-4/+7
| | | | | | this allows the emulator to display some graphics Change-Id: Ib4671ad70b8df598d02307f2b9c5b843421cea25
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-8/+6
| | | | | | Bug: 5010576 Change-Id: I04d722f258951a3078fe07899f5bbe8aac02a8e8
* fix libagl surface initializationMathias Agopian2011-05-111-0/+4
| | | | | | this broke recently when removing copybit support. Change-Id: I5cc7ff7f49268411c6c2cfb2d97590d52b13dbd5
* frameworks/base: android_native_buffer_t -> ANativeWindowBufferIliyan Malchev2011-05-034-23/+23
| | | | | Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417 Signed-off-by: Iliyan Malchev <malchev@google.com>
* remove last traces of copybitMathias Agopian2011-05-021-1/+0
| | | | Change-Id: Ia0f13a0ee6f702256482b5eb29d7fa2aa840bfc7
* get rid of dependency on copybit HAL moduleMathias Agopian2011-04-281-86/+27
| | | | Change-Id: Ia608099a2426c11a91d33063ba53c93e1eccb428
* Fix a multithreading bug in libagl's EGL.Jamie Gennis2011-01-301-0/+5
| | | | | | | | | The bug caused libagl to return 0 from eglGetError if an EGL error value (including EGL_SUCCESS) was set on a different thread but not yet on the current thread. Bug: 3403756 Change-Id: Ifd965091d116745c2e22c121151ade9e78eb14c6
* fix build.Mathias Agopian2010-12-081-13/+7
| | | | Change-Id: I49262ac143da297efcaec4eed04052274c73b7f8
* Fix for simulator buildKristian Monsen2010-10-271-1/+3
| | | | | | | The code looks correct, but causes an internal compiler error on simulator builds on mine (an other) gLucid desktops. Change-Id: Iaf0d8120778ec1c6fc739ef13e6eaaac53e3bcc8
* am d9588e9c: am a7b745ca: Merge "fix eglChooseConfig() for special ↵Mathias Agopian2010-10-261-4/+7
|\ | | | | | | attributes." into gingerbread
| * am a7b745ca: Merge "fix eglChooseConfig() for special attributes." into ↵Mathias Agopian2010-10-261-4/+7
| |\ | | | | | | | | | gingerbread
| | * fix eglChooseConfig() for special attributes.Mathias Agopian2010-10-251-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | affects software renderer (emu) only. per EGL spec: If EGL_MAX_PBUFFER_WIDTH, EGL_MAX_PBUFFER_HEIGHT, EGL_MAX_PBUFFER_PIXELS, or EGL_NATIVE_VISUAL_ID are specified in attrib list, then they are ignored Change-Id: I3d5214ce896986da2f11d2eb1889afc41731eaa6
* | | am 49af98ed: am aa6df366: Merge "fix [3119687] [Maps][4.6.0] Force close in ↵Mathias Agopian2010-10-211-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | street view" into gingerbread Merge commit '49af98ed877e8a2db5a6b5be811c798e6f73dff7' * commit '49af98ed877e8a2db5a6b5be811c798e6f73dff7': fix [3119687] [Maps][4.6.0] Force close in street view
| * | am aa6df366: Merge "fix [3119687] [Maps][4.6.0] Force close in street view" ↵Mathias Agopian2010-10-211-2/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | into gingerbread Merge commit 'aa6df3669deab2a804c6f8cc1ea3fd5af0a28685' into gingerbread-plus-aosp * commit 'aa6df3669deab2a804c6f8cc1ea3fd5af0a28685': fix [3119687] [Maps][4.6.0] Force close in street view
| | * fix [3119687] [Maps][4.6.0] Force close in street viewMathias Agopian2010-10-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The EGLConfig attributes MUST be sorted, because they're used in a binary search. A recent change introduced a bug where 2 of the configs had improperly sorted attributes. Change-Id: I1ac53e4463d62f27125ca9f82ed946e6c98ddba0
* | | am 6d90e89a: am a0795fc9: Merge "software renderer: fix [3117351] GL driver ↵Mathias Agopian2010-10-211-0/+8
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | doesn\'t set the EGL_NATIVE_VISUAL_ID" into gingerbread Merge commit '6d90e89afa47293cf5fe18f512cce43d2fa6df82' * commit '6d90e89afa47293cf5fe18f512cce43d2fa6df82': software renderer: fix [3117351] GL driver doesn't set the EGL_NATIVE_VISUAL_ID
| * | am a0795fc9: Merge "software renderer: fix [3117351] GL driver doesn\'t set ↵Mathias Agopian2010-10-201-0/+8
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | the EGL_NATIVE_VISUAL_ID" into gingerbread Merge commit 'a0795fc9bdf97703780cbf0ec47c06eccb642e72' into gingerbread-plus-aosp * commit 'a0795fc9bdf97703780cbf0ec47c06eccb642e72': software renderer: fix [3117351] GL driver doesn't set the EGL_NATIVE_VISUAL_ID
| | * software renderer: fix [3117351] GL driver doesn't set the EGL_NATIVE_VISUAL_IDMathias Agopian2010-10-201-0/+8
| | | | | | | | | | | | Change-Id: I371bc0abfee6065247bc6f04b0e0451645eb2dbf
* | | am add9db83: am f4cd9be0: Merge "fix [2236865] STOPSHIP: bump soft gl and ↵Mathias Agopian2010-10-212-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | egl minor version number" into gingerbread Merge commit 'add9db83fdbf939f0610f8b357788fd3e8ad9ab5' * commit 'add9db83fdbf939f0610f8b357788fd3e8ad9ab5': fix [2236865] STOPSHIP: bump soft gl and egl minor version number
| * | am f4cd9be0: Merge "fix [2236865] STOPSHIP: bump soft gl and egl minor ↵Mathias Agopian2010-10-192-2/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | version number" into gingerbread Merge commit 'f4cd9be0390135269e22e42fd2e1fe61fdcf9863' into gingerbread-plus-aosp * commit 'f4cd9be0390135269e22e42fd2e1fe61fdcf9863': fix [2236865] STOPSHIP: bump soft gl and egl minor version number
| | * fix [2236865] STOPSHIP: bump soft gl and egl minor version numberMathias Agopian2010-10-192-2/+2
| | | | | | | | | | | | Change-Id: Ibf46b18d7493348e189f2c93e969a6cac61f68b5
| * | am ff3dcf27: Merge "cleanup EGL a bit. remove unused extension." into ↵Mathias Agopian2010-08-271-28/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit 'ff3dcf27be2bbb259b7605396d36e50ade35266f' into gingerbread-plus-aosp * commit 'ff3dcf27be2bbb259b7605396d36e50ade35266f': cleanup EGL a bit. remove unused extension.
| | * cleanup EGL a bit. remove unused extension.Mathias Agopian2010-08-271-28/+0
| | | | | | | | | | | | Change-Id: Ia87120b076ab1bf7b28f06087878d8161fb46c88