summaryrefslogtreecommitdiffstats
path: root/opengl
Commit message (Collapse)AuthorAgeFilesLines
* am c421fc2a: Merge change Id09376d1 into eclairMathias Agopian2009-11-091-4/+23
|\ | | | | | | | | | | | | Merge commit 'c421fc2ada7c1bff104733b840bd640151bebbbb' into eclair-plus-aosp * commit 'c421fc2ada7c1bff104733b840bd640151bebbbb': fix [2071412] work around mdp 32-bits fade limitation
| * fix [2071412] work around mdp 32-bits fade limitationMathias Agopian2009-11-091-4/+23
| | | | | | | | make sure to always specify blits *inside* the source bitmap.
* | merge from open-source masterJean-Baptiste Queru2009-11-081-1/+1
|\ \ | |/ |/|
| * Fix obvious typo bug in egl.cppChristoffer Gurell2009-10-121-1/+1
| | | | | | | | can (and does sometimes) lead to accessing array with -1 as index
| * Merge change 11093Android Code Review2009-08-251-0/+2
| |\ | | | | | | | | | | | | * changes: If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing the viewport.
| | * If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing ↵Martin Storsjo2009-08-101-0/+2
| | | | | | | | | | | | the viewport.
| * | Calculate specular lighting correctlyMartin Storsjo2009-08-111-3/+8
| |/ | | | | | | | | | | Since the lighting calculations are done in object space, the vector from the object to the viewer also needs to be transformed to object space.
| * merge from donutJean-Baptiste Queru2009-07-292-2/+2
| |\
| | * donut snapshotJean-Baptiste Queru2009-07-292-2/+2
| | |
| * | Merge korg/donut into korg/masterJean-Baptiste Queru2009-07-2581-2927/+4144
| |\ \ | | |/
| | * donut snapshotJean-Baptiste Queru2009-07-2120-101/+378
| | |
| | * donut snapshotJean-Baptiste Queru2009-05-2069-2835/+3775
| | |
* | | part of fix [2186418] switch passion to 24-bits framebufferMathias Agopian2009-11-041-82/+80
| | | | | | | | | | | | | | | add support for RGBX_8888 EGLConfigs in the software renderer (since that's what we're using in the MDP case)
* | | fix [2236832] software OpenGL ES driver doesn't work on sholesMathias Agopian2009-11-031-3/+15
| | | | | | | | | | | | make sure to not pass our fake handles to the real gralloc
* | | Merge change I56981989 into eclairAndroid (Google) Code Review2009-11-031-7/+6
|\ \ \ | | | | | | | | | | | | | | | | * changes: fix [2231527] Compatibility with SpaceJunk game (OpenGL)
| * | | fix [2231527] Compatibility with SpaceJunk game (OpenGL)Mathias Agopian2009-11-021-7/+6
| | | | | | | | | | | | | | | | | | | | we treated all lights as local lights when transforming their position back to object space.
* | | | fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts ↵Mathias Agopian2009-11-022-8/+19
|/ / / | | | | | | | | | | | | | | | | | | | | | when playing back video we lost the concept of vertical stride when moving video playback to EGLImage. Here we bring it back in a somewhat hacky-way that will work only for the softgl/mdp backend.
* | | libagl: silence a LOGDIliyan Malchev2009-10-301-1/+2
| | | | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | Merge change Ie3e80456 into eclairAndroid (Google) Code Review2009-10-301-2/+4
|\ \ \ | | | | | | | | | | | | | | | | * changes: Turns out the SGX driver is correct and the bug was in this test.
| * | | Turns out the SGX driver is correct and the bug was in this test.Mathias Agopian2009-10-301-2/+4
| | | | | | | | | | | | | | | | | | | | make sure the 565 1-texel wide texture is specified with an alignment of 4 which is the OpenGL ES default.
* | | | Merge change I56779290 into eclairAndroid (Google) Code Review2009-10-301-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: fix[2222341] Soft reset while going back from camcorder settings
| * | | | fix[2222341] Soft reset while going back from camcorder settingsMathias Agopian2009-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add a way to convert a mapped "pushbuffer" buffer to a gralloc handle which then can be safely used by surfaceflinger, without including gralloc_priv.h
* | | | | Merge change If007a2fa into eclairAndroid (Google) Code Review2009-10-302-4/+38
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | | * changes: return proper error code from eglCreateImageKHR
| * | | return proper error code from eglCreateImageKHRMathias Agopian2009-10-292-4/+38
| | | |
* | | | update line test to expose some bug on SGX530 ed4Mathias Agopian2009-10-291-11/+8
|/ / /
* | | fix [2071412] work around mdp 32-bits fade limitationMathias Agopian2009-10-281-11/+68
| | | | | | | | | | | | | | | | | | | | | in the case where we fade a 32-bits surface (ie: GL_MODULATE w/ a,a,a,a + blending), we first make a copy of the background into a RGB buffer, then we blend the 32-bits surface as usual (without the alpha component), and finally blend the copy of the background on top with 1-a. This uses a lot of bandwidth, but no CPU time.
* | | added GL test for textured linesMathias Agopian2009-10-282-0/+134
| | |
* | | fix [2143798] Need to figure out how to do videoMathias Agopian2009-10-272-24/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use EGLImageKHR instead of copybit directly. We now have the basis to use streaming YUV textures (well, in fact we already are). When/if we use the GPU instead of the MDP we'll need to make sure it supports the appropriate YUV format. Also make sure we compile if EGL_ANDROID_image_native_buffer is not supported
* | | Add size checks for glBufferData and glBufferSubDataJack Palevich2009-10-213-125/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without the size checks it's possible for calls to glBufferData and glBufferSubData to read off the end of the Buffer object's data, which can cause page faults. Fix end-of-line characters for the "spec" files. (That's why every line of these files is changed.) Enhance our code emitter to properly handle bounds checks for possibly-null pointers.
* | | Use the TLS register if HAVE_ARM_TLS_REGISTER is definedMathias Agopian2009-10-193-6/+34
| | | | | | | | | | | | | | | this will be needed for SMP, but would improve dispatching GL calls a bit on armv6 and above.
* | | Merge change I0953c1d5 into eclairAndroid (Google) Code Review2009-10-191-5/+18
|\ \ \ | | | | | | | | | | | | | | | | * changes: fix [2153873] EGL-1.4 software implementation misses surface attributes
| * | | fix [2153873] EGL-1.4 software implementation misses surface attributesMathias Agopian2009-10-191-5/+18
| | | |
* | | | Merge change Ide4c8cbc into eclairAndroid (Google) Code Review2009-10-191-0/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | * changes: fix [2151588] glTexSubImage2D() allows pixel format conversion
| * | | fix [2151588] glTexSubImage2D() allows pixel format conversionMathias Agopian2009-10-191-0/+5
| | | |
* | | | one step towards fixing [2071412] work around mdp 32-bits fade limitationMathias Agopian2009-10-161-41/+44
|/ / / | | | | | | | | | simplify the GL_MODULATE case and allow blending disabled with RGBA texture
* | | fix [2187212] add support for GLESv2 dispatch based on TLSMathias Agopian2009-10-1413-565/+523
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using a different function pointer table for ES 1.x and ES 2.x, we use a single one that is the union (sort|uniq) of both tables. Two instances of this table are initialized with pointers to GL ES 1.x and GL ES 2.x entry-points. When a context is created, we store its version number and when it is bound to a thread we set the approruiate table based on the stored version. This introduce no penalty while dispatching gl calls to the right API version. [Pending Dr No approval for MR1]
* | | Revert "egl: temporarily also include eglTerminate->eglInitialize hack for 8k"Dima Zavin2009-10-091-4/+0
| | | | | | | | | | | | This reverts commit ed5ecdba36648973be3033a045e2ece8bf039e4a.
* | | add a way to easily catch and log GL errors (compile time flag)Mathias Agopian2009-10-081-3/+21
| | |
* | | fix [2167050] glTexImage2D code path buggy in SurfaceFlingerMathias Agopian2009-10-068-1179/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When EGLImage extension is not available, SurfaceFlinger will fallback to using glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an extra copy. However this code path has never been exercised and had some bugs which this patch fix. Mainly the scale factor wasn't computed right when falling back on glDrawElements. We also fallback to this mode of operation if a buffer doesn't have the adequate usage bits for EGLImage usage. This changes only code that is currently not executed. Some refactoring was needed to keep the change clean. This doesn't change anything functionaly.
* | | a simple test app for grallocMathias Agopian2009-10-016-0/+556
| | |
* | | Add a simple test of OpenGL ES 1.x.Jack Palevich2009-09-302-0/+374
| | |
* | | Merge change I8018f091 into eclairAndroid (Google) Code Review2009-09-304-64/+76
|\ \ \ | | | | | | | | | | | | | | | | * changes: Add very simple input path. Fix end-of-line issues.
| * | | Add very simple input path. Fix end-of-line issues.Jack Palevich2009-09-304-64/+76
| | | |
* | | | Don't ask for pbuffer support, because we don't use any pbuffers.Jack Palevich2009-09-281-1/+1
| | | |
* | | | Print out EGL configuration info for the config we've chosen.Jack Palevich2009-09-281-53/+57
| | | | | | | | | | | | | | | | | | | | Don't ask for PBuffer support, since we don't actually use pbuffers, and some drivers might not support them.
* | | | Print out all available EGL configurations.Jack Palevich2009-09-281-8/+82
| | | |
* | | | fix [2147737] Pixel Flinger needs to set EGL_RENDERABLE_TYPE to ↵Mathias Agopian2009-09-271-1/+2
|/ / / | | | | | | | | | | | | | | | EGL_OPENGL_ES_BIT Also set max swap interval to 1, which is the only supported value currently.
* | | egl: temporarily also include eglTerminate->eglInitialize hack for 8kDima Zavin2009-09-261-0/+4
| | | | | | | | | | | | | | | Change-Id: Id5c51e54e733b24e5d5d5de0dcca84ac53afd3a9 Signed-off-by: Dima Zavin <dima@android.com>
* | | Fix build.Jack Palevich2009-09-251-1/+1
| | |
* | | Tighten up sample code.Jack Palevich2009-09-253-22/+25
| | | | | | | | | | | | - Still fails to work; don't know why.