summaryrefslogtreecommitdiffstats
path: root/opengl/system/GLESv2_enc
Commit message (Collapse)AuthorAgeFilesLines
* Checking parameters for glCreateShader in guestTina Zhang2015-03-271-0/+2
| | | | | | | | | | Currently, the guest part doesn't do enough to check each API's parameters. This may lead to conformance issues. Considering performance and conformance on multiple platform, it's better to add the parameter validation in guest part. Change-Id: Ic37c9bae5fba3c7e75a2095416fea41b8d1a949a Signed-off-by: Tina Zhang <tina.zhang@intel.com>
* Merge "Set proper error code for glShaderBinary function"Bo Hu2015-01-222-0/+10
|\
| * Set proper error code for glShaderBinary functionBo Hu2015-01-212-0/+10
| | | | | | | | | | | | | | This function is not supported, but we still need to set proper error code when it is called, instead of doing nothing. Change-Id: I3f880e9b5e661fe4bd8e8f51f38df71c24b420e5
* | opengl: Regenerate GPU emulation encoder sources to fix NULL parameters in ↵bohu2015-01-141-8/+8
|/ | | | | | | | | | | | | | | some gl functions. This fix handles NULL values of 'size' and 'type' in glGetActiveAttrib and glGetActiveUniform. This patch updates the encoder sources to match the auto-generated output of the latest 'emugen' tools from sdk/emulator/opengl/ Generated by using external/qemu/distrib/update-emugl-source.sh related change: 82aa88b78e26b048e428a930a867166eff611984 Change-Id: Ifbd9e8bf3473ed054e95e1ee3a7885652c2002ce
* Add parameters validation to glShaderSource() APITina Zhang2014-12-111-1/+3
| | | | | | | | According to GLES2.0 Spec., add parameters validataion to glShaderSource() API. Change-Id: I5b0e939fd9657ccbb40a13896c8fc74ef02fd085 Signed-off-by: Tina Zhang <tina.zhang@intel.com>
* Merge "Fix eglDestroyContext and glTexImage2D"bohu2014-12-012-0/+23
|\
| * Fix eglDestroyContext and glTexImage2Dbohu2014-11-262-0/+23
| | | | | | | | | | | | | | | | | | | | 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 pixelDataSize() ambiguity.David 'Digit' Turner2014-11-275-21/+28
|/ | | | | | | | | | | | | | | | | The GLESv1 encoder library was calling the pixelDataSize() function definition from the GLESv2 encoder library, resulting in bugs, like the inability to see the boot animation when -gpu on is used. This fixes the issue by using namespaces to differentiate the two implementations. Note that the auto-generated files have been updated by re-running update-emugl-sources.sh as specified by opengl/README after applying the following patches: https://android-review.googlesource.com/#/c/116642/ https://android-review.googlesource.com/#/c/116643/ https://android-review.googlesource.com/#/c/116644/ Change-Id: Idbd84fb6ca5934cbb9af009b09f9a38cc4a1340a
* handles glGetBooleanv when value is nonbooleanbohu2014-11-181-0/+1
| | | | | | Properly converts non-zero value to GL_TRUE. Change-Id: I9ca1d42d9b36ae9ce0a01cf6a358d9fe59a02558
* Merge "Unbind buffer when buffer is deleted"bohu2014-11-171-0/+3
|\
| * Unbind buffer when buffer is deletedbohu2014-11-061-0/+3
| | | | | | | | | | | | | | When buffer is deleted, it should be un-bind also. Also fix error code related to buffer Change-Id: I3e7ec88399822469a36119c2de03157a2bbea812
* | resolved conflicts for merge of 5a7d8f2d to stage-aosp-masterDavid 'Digit' Turner2014-10-319-1136/+717
|\| | | | | | | Change-Id: I4ce3cee422f8e98d70bbf2ffcaac34650c7182b4
| * opengl: Regenerate GPU emulation encoder sources.David 'Digit' Turner2014-10-315-221/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch updates the encoder sources to match the auto-generated output of the latest 'emugen' tools from sdk/emulator/opengl/ Generated by using external/qemu/distrib/update-emugl-source.sh This shall only results in minor changes: - Minor indentation fixes. - Using 'const' to define constant tables. - Using anonymous namespaces in the encoders. Change-Id: Ib282b31c4c05da897157ef90e5a9deb914a08bda
| * opengl: Remove compiler warnings.David 'Digit' Turner2014-10-302-1/+5
| | | | | | | | | | | | | | | | 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
| * opengl: Remove accessor functions from encoders.David 'Digit' Turner2014-10-305-910/+489
| | | | | | | | | | | | | | | | | | These functions are not necessary since all the fields are public members of structures. Also gets us closer to the state of the real emugen output, which isn't matched yet due to other differences. Change-Id: Iea092beca7e3a819c286fe3d84897e6a170747f8
| * opengl: Fix a few function name typos.David 'Digit' Turner2014-10-302-7/+7
| | | | | | | | | | | | | | A small preliminary patch to make future patches slightly simpler, easier to merge into the internal tree. Change-Id: Iec649b61349106d4531a6e28141c0f0687a144c5
* | resolved conflicts for merge of 7472654e to stage-aosp-masterDavid 'Digit' Turner2014-10-302-0/+10
|\| | | | | | | Change-Id: Ieda2d8d1ac00854de28959e4632827a12b399cf2
| * Fix GPU emulation crash.David 'Digit' Turner2014-10-302-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the crash that occurs during boot when the boot animation starts. The main issue is that the wrong version of glGenTextures_enc() was being called. The root issue is that libGLESv1_CM_emulation.so, which implements the GLESv1 API in the system, is linked to both libGLESv2_enc.so and libGLESv1_enc.so which both provided a glGenTextures_enc() function, used to encode a glGenTextures() command call into the wire protocol. Until recently, and due to pure luck, the function call in libGLESv1_CM_emulation.so was resolved to the function in libGLESv1.so, which is the correct version to use from this library. However, due to recent changes in the dynamic linker's symbol resolution implementation, the version in libGLESv2.so was being used instead. The bug is really in our library and this patch provides a fix by removing the duplicate functions, with the help of C++ namespaces. NOTE: This patch modifies auto-generated code. A better fix would be to fix the generator, then refresh the sources with its new output. However, several other manual patches have been performed on these files in the past too to fix other issues, so doing so would lose the fixes. A future patch will update the generator, and refresh all sources accordingly. This is a "quick-fix" to get us to a proper booting state. NOTE: Even after applying this patch, the system boots to the 'home screen' but fails to display the boot animation. BUG=18146046 Change-Id: I48cab73ad583e303723340e80d19a82fa301b61d
* | Merge commit 'ca37eef61fa94932463f117ff1655a7e68f1827e' into HEADBill Yi2014-10-223-8/+8
|\ \ | |/ |/|
| * am 9c6d3726: Merge "Fix emulator crashes on glDrawElements command"bohu2014-10-141-2/+2
| |\ | | | | | | | | | | | | * commit '9c6d37269b85c41203a2f061958922315d55f6ce': Fix emulator crashes on glDrawElements command
| * | opengl: Fix const-ness of GLES prototypes to match new headersJesse Hall2014-05-213-8/+8
| | | | | | | | | | | | | | | Bug: 1502849 Change-Id: I902517c23354e14f9c63b1584db286d682315bb5
* | | Merge "Handle empty data parameter in glTexSubImage2D_enc"bohu2014-10-211-2/+2
|\ \ \
| * | | Handle empty data parameter in glTexSubImage2D_encbohu2014-10-171-2/+2
| | |/ | |/| | | | | | | | | | | | | | | | Empty data parameter crashes emulator, this commit checks and handles it properly. Change-Id: Iee468bdc555acc1e0c87b38bd7f09ffd8f22b937
* | | Merge "Allow glGetProgramInfoLog_enc to have empty length"bohu2014-10-211-2/+2
|\ \ \
| * | | Allow glGetProgramInfoLog_enc to have empty lengthbohu2014-10-171-2/+2
| |/ / | | | | | | | | | | | | | | | | | | OpenGL standard allows empty length parameter and we should handle it properly to avoid crashing emulator. Change-Id: I07c1f726ee9d789fcba53986b724b8f4a1f07cf2
* / / Guard against negative buffer sizebohu2014-10-172-0/+53
|/ / | | | | | | | | | | | | When negative buffer sizes are passed, emulator crashes. This commit checks the buffer size and handles properly. Change-Id: I223d5f5bcde2455e4b39354f9527dceb193b8e47
* / Fix emulator crashes on glDrawElements commandbohu2014-10-131-2/+2
|/ | | | | | | | The current implementation does not properly handle the case when glDrawElements is called without a buffer binded. This commit fixes this problem and fixes the crash. Change-Id: Ic7a5b2fb90c860dad878ed53a369349d479ba4e5
* Support GLES acceleration in 64bit emulator on device sideTina Zhang2014-04-091-2/+2
| | | | | | | Support both 32bit and 64bit emulator GLES acceleration. Change-Id: Ibd8b970d23937ae40732324706074ff00f433a14 Signed-off-by: Tina Zhang <tina.zhang@intel.com>
* migrate opengl and system from development/toolskeunyoung2013-03-1114-0/+7681
- components under system are moved one directory up like all other HALs Change-Id: I03b870b870d83b247ac398cadfb155f03c9adfa0