OSDN Git Service
Bo Hu [Thu, 2 Mar 2017 03:41:47 +0000 (03:41 +0000)]
Merge "Emulator: make qemu_pipe.h self contained in goldfish-opengl project"
Lingfeng Yang [Tue, 28 Feb 2017 07:23:32 +0000 (07:23 +0000)]
Merge "extern "C" unconditionally"
Lingfeng Yang [Mon, 27 Feb 2017 20:39:51 +0000 (12:39 -0800)]
Have single macro for taking care of goldfish_dma_context alignment.
Previously,
!defined(__aarch64__) || !defined(__x86_64__) is always true,
instead of the intended "add this field if not 64 bit."
OOPS
bug:
35711775
Change-Id: I46043c4402325845524d56d8d4f910f16add25cb
Lingfeng Yang [Mon, 27 Feb 2017 17:40:22 +0000 (09:40 -0800)]
extern "C" unconditionally
This keeps older API levels from mangling GLESv3 entry points.
Change-Id: I5e751ca9f53f510d057693d368bc15c20f66e463
bohu [Sat, 25 Feb 2017 06:42:03 +0000 (22:42 -0800)]
Emulator: make qemu_pipe.h self contained in goldfish-opengl project
Remove the dependency on the system/qemu_pipe.h or hardware/qemu_pipe.h;
and use the legacy qemu_pipe_open definition since goldfish-opengl is
shared accross all apis.
Change-Id: I3da10066d458a57385c408cee4d2ded0eec6e456
Lingfeng Yang [Wed, 22 Feb 2017 17:38:02 +0000 (17:38 +0000)]
Merge "Also take into account arm64 and mips64 for goldfish_dma_context aligment."
Lingfeng Yang [Tue, 21 Feb 2017 06:17:13 +0000 (22:17 -0800)]
Also take into account arm64 and mips64 for goldfish_dma_context aligment.
bug:
35618215
Change-Id: I147aeca391f97b0bccaed0b572b2fe13e627ad00
Lingfeng Yang [Tue, 21 Feb 2017 15:29:15 +0000 (07:29 -0800)]
Don't restrict GLES 3.x based on API level nor arch.
bug:
35618215
Simpler that way, and we should be able to support all archs.
Change-Id: I77f5295047b05dc9188b15501be08b95b8f41302
Lingfeng Yang [Fri, 17 Feb 2017 22:44:20 +0000 (14:44 -0800)]
Align goldfish_dma_context to 8 byte boundaries
bug:
35465006
It looks like when Chrome is started, we are in some strange world
where sizeof(goldfish_dma_context) = 16 instead of 24,
and we get in trouble with gralloc_register buffer,
and Chrome fails to boot.
TODO: Note that youtube videos inside chrome still don't seem to work,
for some reason (this doesn't depend on whether or not goldfish_dma is
used).
Change-Id: Ibc66885434b885993025b70d957ea8e1adf524de
Lingfeng Yang [Fri, 17 Feb 2017 17:56:26 +0000 (09:56 -0800)]
[deqp] Fix state_query.string
bug:
34245902
Version string needs to match the glGetIntegerv(GL_MINOR_VERSION, ...).
Change-Id: I8b51104b0347c12c93c350dda7fb03c145f8c3e2
Lingfeng Yang [Wed, 15 Feb 2017 16:44:21 +0000 (08:44 -0800)]
[deqp] Fix wrong firstIndex for non-instanced draws with nonzero divisor
bug:
34245909
If the vertex attribute divisor is nonzero,
that actually affects first index for non-instanced draws
at least.
TODO: Figure out if this affects the instanced draws too.
dEQP-GLES3.functional.draw.random.210 : Fail -> Pass
Change-Id: Ida45d4689e0418ad8679091556a9fcaa64bbe25e
Lingfeng Yang [Tue, 31 Jan 2017 04:06:39 +0000 (20:06 -0800)]
Fix regression in fbo.completeness after GL_EXT_color_buffer_float
Change-Id: Ie17da0442c80b972e5a66353b3998160fe04f032
Lingfeng Yang [Fri, 27 Jan 2017 20:26:19 +0000 (12:26 -0800)]
[validation] Message on vertex attrib index out of bounds
Change-Id: Ie7f79b63d31fbae6cb97b3ae96fa5bdb8fefca27
Lingfeng Yang [Fri, 27 Jan 2017 14:50:56 +0000 (06:50 -0800)]
[interface][fbo] Pass extensions, GL_EXT_color_buffer_float
- Pass extensions from the underlying OpenGL to encoder for
validation.
- Add GL_EXT_color_buffer_float.
Change-Id: I67f8e68012bba9c5ffef24d9588a9615cf6f0e6b
Lingfeng Yang [Wed, 25 Jan 2017 16:09:02 +0000 (08:09 -0800)]
Don't crash if user specified client array of nullptr
3dmark can run into timing/races and do this sort of thing.
Change-Id: Ic75f78d23cb26ebe18142dc78158f5ffb05967fd
Lingfeng Yang [Wed, 25 Jan 2017 16:05:53 +0000 (08:05 -0800)]
[GLESv3] Add KHR_create_context semantics
If the ES 3.x feature is enabled:
1. If not on GLES1, select the highest available 3.x context if
major version was not specified.
2. If on GLES2, upgrade to highest available 3.x context.
- In this case, need to allow GL_HALF_FLOAT_OES through to
keep from regressing CTS dEQP-GLES2.functional.fbo.completeness
if the feature is enabled.
Change-Id: I92194387f09f3a531c6d39b5e2659ff62c4c77cd
Lingfeng Yang [Tue, 24 Jan 2017 21:42:08 +0000 (13:42 -0800)]
Remove extraneous ALOGD's
Change-Id: Iefe7f8db7cc38f744dcc3c706963f3a9095786ca
Lingfeng Yang [Tue, 24 Jan 2017 19:25:46 +0000 (19:25 +0000)]
Merge "[fps] Flush every 200 draw calls instead of 2"
Lingfeng Yang [Wed, 18 Jan 2017 19:42:04 +0000 (11:42 -0800)]
[WIP] ES 3.1 guestside changes
Change-Id: Ie4619ee6e161274383b9f6b0d2922344da20f62f
Lingfeng Yang [Thu, 19 Jan 2017 16:04:48 +0000 (08:04 -0800)]
[fps] Flush every 200 draw calls instead of 2
Linux z840, quadro k2200 3dmark ice storm unlimited:
80k->100k
Change-Id: Ia4d68f3d096ad042e3279d5a1d848930ce4571a6
Lingfeng Yang [Wed, 18 Jan 2017 17:23:12 +0000 (09:23 -0800)]
[GLESv3] Invalidate index range cache on buffer unmap/flush
Fixes incorrect out of bounds validation messages
while playing Vector 2 (ES 3.1 game)
Change-Id: I7290b6a1ba0417d897f119d5d7695c2c16d64e39
Lingfeng Yang [Wed, 18 Jan 2017 17:26:19 +0000 (09:26 -0800)]
[validation] Check null buf before printing validation info
Change-Id: I2ba7c4c694ad4a75a6e68722e3fd7cde05a47a0f
Lingfeng Yang [Wed, 18 Jan 2017 17:17:09 +0000 (09:17 -0800)]
[validation] Correctly compute wanted draw call size when draw count == 0.
bug:
34378638
Change-Id: I9912436048c28337de40d13536246a6b9e11fc7b
Lingfeng Yang [Thu, 12 Jan 2017 02:31:38 +0000 (18:31 -0800)]
[GLESv3] Fix protocol error + build on older imgs
Change-Id: I6a28dfeed1242a89f1bf8a872f9f6ebd39585d8c
Lingfeng Yang [Thu, 12 Jan 2017 01:06:42 +0000 (17:06 -0800)]
[GLESv3] Fix build
Change-Id: I1255b2505eec7ce032992b99c20df4a1dca4394f
Lingfeng Yang [Mon, 9 Jan 2017 21:37:22 +0000 (13:37 -0800)]
[GLESv3] ES 3.x API v1
- ES 3.0 almost conformant (~80 dEQP-GLES3 failures)
- ES 3.1 has entry points
- This CL adds all the new entry points and updates all
validation.
Change-Id: I8f7256d9443ecda9d7ef87580b467e711c6e8e92
Lingfeng Yang [Mon, 9 Jan 2017 21:27:49 +0000 (13:27 -0800)]
[GLESv3] Transform feedback state tracking
Needed to pass some negative_api tests involving transform feedback.
Change-Id: I7be230bb6432c32641de6bb9249fd00ba3dfe926
Lingfeng Yang [Mon, 9 Jan 2017 21:25:31 +0000 (13:25 -0800)]
[GLESv3] Shader state updates
- Track program pipelines
- Track separate shader programs
- Track original shader source in guest
Change-Id: I8f54089ddf12d03677275cde58ea7f267e410482
Lingfeng Yang [Mon, 9 Jan 2017 21:24:11 +0000 (13:24 -0800)]
[GLESv3] Updated validation
Change-Id: I0881a6bd58717964c235075e94b021e7e24be420
Lingfeng Yang [Mon, 9 Jan 2017 21:23:42 +0000 (13:23 -0800)]
[GLESv3] glUtils update for ES 3.x
Change-Id: Iaf9b5832af0822d9f663a5365e7ae9a7cee426cc
Lingfeng Yang [Mon, 9 Jan 2017 21:23:25 +0000 (13:23 -0800)]
[GLESv3] FBO state
- Draw/read framebuffers
- Multisampled render buffers
- Multiple color attachments
- GL_DEPTH_STENCIL attachment
Change-Id: Ic0f51633a42a14d333b6dc3fb52c6fa9de0bfe17
Lingfeng Yang [Mon, 9 Jan 2017 21:12:33 +0000 (13:12 -0800)]
[GLESv3] ES 3.x buffer state
- VAOs
- indexed buffers
Change-Id: I743c3e22bdbb67ca0b6cecac6b231cd674a5061f
Lingfeng Yang [Tue, 10 Jan 2017 22:54:38 +0000 (14:54 -0800)]
[GLESv3] Texture state tracking upgrades
- TextureUtils to get the low down on all offset/size related calculations
(ripped from SwiftShader)
- This involves track of all PBO fields
- Move TextureRec and friends to GLSharedGroup
- Implement new encoder utils to use in encoder
Change-Id: Ic6585f49d2928fe965181ec706d5fefa8713e0eb
Lingfeng Yang [Mon, 9 Jan 2017 20:04:12 +0000 (12:04 -0800)]
[GLESv3] versions, es > 2, encoder
- Encoder with ES 3.x entry points
- Allow ES versions > 2 depending on host capability
Change-Id: I71e374f1685610bb0e4f9e04f4bba87b0cbaa02b
Lingfeng Yang [Wed, 11 Jan 2017 00:30:58 +0000 (00:30 +0000)]
Merge "Revert "Fix boot for car emulator on git-master""
Lingfeng Yang [Wed, 11 Jan 2017 00:30:45 +0000 (00:30 +0000)]
Revert "Fix boot for car emulator on git-master"
This reverts commit
3783edd49fd2ad6f200cbf9d04978132f2e41bd2.
Change-Id: I25dab3f8c151506a84601ab0c341d5dfc7c3b2ae
Weilun Du [Fri, 6 Jan 2017 18:37:21 +0000 (18:37 +0000)]
Revert "Fix git-master and sync device"
This reverts commit
057e300788707fca96aeb82c3cc4d1d9b475b032.
Change-Id: Ic2d2c808cf1587e839abfa7a8928792544f231ac
Lingfeng Yang [Wed, 4 Jan 2017 01:35:08 +0000 (17:35 -0800)]
Fix git-master and sync device
Disable sync device for now until we fix rest of the issues
Change-Id: Ie4878b1231b481e5085d47e7525f0ae4b3c7e9db
Lingfeng Yang [Tue, 3 Jan 2017 23:57:53 +0000 (15:57 -0800)]
Fix boot for car emulator on git-master
bug:
33623000
Change-Id: Ie17136f2adafdb567bf9a490cf1282f1703d4f54
Lingfeng Yang [Wed, 14 Dec 2016 21:13:51 +0000 (13:13 -0800)]
Fix black screen in apps
- multi-line for loop body :)
- distinguish locked vs unlocked cb width
Change-Id: I4d978011a1b7a7aa5efb244a56353857285e3a03
TreeHugger Robot [Tue, 13 Dec 2016 01:52:55 +0000 (01:52 +0000)]
Merge "Fix out-of-bounds vertex arrays"
Lingfeng Yang [Tue, 13 Dec 2016 00:17:02 +0000 (16:17 -0800)]
Fix out-of-bounds vertex arrays
Index range cache got a bogus argument for "offset",
so it was not being invalidated properly.
When it wasn't being invalidated properly, our validation
could issue out-of-bounds errors even when the index buffer
was actually not out of bounds.
Change-Id: I9c59412bb20bd6ea16e25bf83f1e64d5889910e9
TreeHugger Robot [Fri, 9 Dec 2016 00:36:02 +0000 (00:36 +0000)]
Merge "Handle repeated swapBuffer errors"
Joshua Lang [Thu, 8 Dec 2016 22:49:07 +0000 (14:49 -0800)]
Handle repeated swapBuffer errors
Changed eglSwapBuffers to actually signal an error when swapBuffers
fails. This was hiding an error log at the SurfaceFlinger callsite.
When eglSwapBuffers is called after a prior error, we should not try to
enqueue a NULL buffer which was causing a segfault that takes down
SurfaceFlinger.
Bug:
33432596
Change-Id: I72f3301e0adbc4ea75266c9c1c9e01d9169036e7
Bill Yi [Tue, 6 Dec 2016 23:52:12 +0000 (23:52 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD am:
0bff4a1296 am:
df28bb8ddf am:
4033cc718c
am:
d8dad693b2
Change-Id: Ie80f047c5a8f81fbc81e8e60ba4c158022590002
Bill Yi [Tue, 6 Dec 2016 23:48:12 +0000 (23:48 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD am:
0bff4a1296 am:
df28bb8ddf
am:
4033cc718c
Change-Id: I3ea15643bbabf94be2fdccb2982459aa8b284f45
Bill Yi [Tue, 6 Dec 2016 23:44:11 +0000 (23:44 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD am:
0bff4a1296
am:
df28bb8ddf
Change-Id: I8651d7ebd3694ac715dcaac6f46d7094c5e327eb
Bill Yi [Tue, 6 Dec 2016 23:39:41 +0000 (23:39 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am:
0bff4a1296
Change-Id: Icdff0ea2225fe1dd8e1b587f829b005810413655
Bill Yi [Tue, 6 Dec 2016 22:30:40 +0000 (14:30 -0800)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
TreeHugger Robot [Tue, 6 Dec 2016 14:38:04 +0000 (14:38 +0000)]
Merge "Print more info if a draw call is out of bounds"
TreeHugger Robot [Fri, 2 Dec 2016 22:09:45 +0000 (22:09 +0000)]
Merge "[GLESv3][VAO] enable/pointer for vertex attribs when possible"
Bill Yi [Fri, 2 Dec 2016 21:05:18 +0000 (21:05 +0000)]
Initial empty repository
Lingfeng Yang [Fri, 2 Dec 2016 20:32:41 +0000 (12:32 -0800)]
Print more info if a draw call is out of bounds
Change-Id: I8f35d27a76d8b023f63543f2afdd4dc9c2a18a0b
Lingfeng Yang [Fri, 2 Dec 2016 16:02:15 +0000 (08:02 -0800)]
[GLESv3][VAO] enable/pointer for vertex attribs when possible
If we don't forward enables/pointers to the host until
right before the draw, when a nonzero VAO is bound,
it defeats the purpose of VAO usage for performance.
This CL prepares the GLES2 encoder for VAO usage by
forwarding those calls whenever possible.
It gives a flag to sendVertexAttributes to not do any
changes in GL state if all attributes are backed by VBOs.
The reason we don't forward them 100% is because of
supporting either legacy or tricky behavior:
Legacy: specifying vertex arrays from host memory directly
with a host ptr passed to glVertexAttribPointer
Tricky: Using glVertexAttrib*f*(...) instead of
glVertexAttribPointer
Change-Id: I190aab86d7dcd7e01cfac0a1f60b44fac131abd0
Lingfeng Yang [Fri, 2 Dec 2016 17:43:24 +0000 (17:43 +0000)]
Merge "Revert "GL2Encoder: Do not forward GLES API version queries""
Lingfeng Yang [Fri, 2 Dec 2016 17:43:01 +0000 (17:43 +0000)]
Revert "GL2Encoder: Do not forward GLES API version queries"
This reverts commit
dadc6b152a14c98bb49ce9848078a6c8bce9bf9f.
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.rgb10_a2 Pass -> Fail
I will provide a proper fix for this; since we are supporting GLESv3, adding the client version to the tracked state and selectively rejecting such formats with GL_FRAMEBUFFER_UNSUPPORTED.
Change-Id: Id7fc205b6ddd46fa72c62cd9a8c67cadee78d46d
Yahan Zhou [Fri, 2 Dec 2016 02:02:30 +0000 (02:02 +0000)]
Merge "More accurate validation on gl vertex attributes"
Yahan Zhou [Thu, 1 Dec 2016 21:49:44 +0000 (13:49 -0800)]
More accurate validation on gl vertex attributes
This CL has more accurate validation for gl vertex attributes, and is
more tolerable if the user forgot to disable some vertex attribute
arrays.
Change-Id: I6bb205add25bf51f0ba70a5cb267c3319a17a842
Yahan Zhou [Thu, 1 Dec 2016 18:17:11 +0000 (18:17 +0000)]
Merge "GL2Encoder: Do not forward GLES API version queries"
Yu Ning [Tue, 31 May 2016 08:40:54 +0000 (16:40 +0800)]
GL2Encoder: Do not forward GLES API version queries
Original author: Chenglangjie Yang <chenglangjie.yang@intel.com>
GLESv3 adds two additional glGetIntegerv() parameters for returning
GLES API version number: GL_MAJOR_VERSION and GL_MINOR_VERSION. They
are not supported by GLESv2, though. Compare:
(v3) https://www.khronos.org/opengles/sdk/docs/man3/html/glGet.xhtml
(v2) https://www.khronos.org/opengles/sdk/docs/man/xhtml/glGet.xml
dEQP actually uses this API to determine if the device being tested
supports GLESv3. If GL2Encoder just forwards such queries to the
host, the result will be the desktop GL API version implemented by
the host GPU driver, which is almost always >= 3.0. This can mislead
dEQP into treating the emulated device as GLESv3-compatible, and
cause various GLESv2 tests to fail.
When applied to AOSP master, this patch fixes various dEQP-GLES2
failures in the following packages:
dEQP-GLES2.functional.fbo.completeness.renderable.*
dEQP-GLES2.functional.negative_api.*
dEQP-GLES2.functional.draw.random
dEQP-GLES2.functional.rasterization.primitives
When applied to Partner m-emu-dev, it causes a few regressions in
dEQP-GLES2 (actually false negatives), which will be addressed by
two other patches.
Change-Id: I801144aeee922d90af4c7dda6af68dcc0a40fb6d
Signed-off-by: Chenglangjie Yang <chenglangjie.yang@intel.com>
[Revised code and commit message]
Signed-off-by: Yu Ning <yu.ning@intel.com>
Christopher Ferris [Wed, 30 Nov 2016 02:36:12 +0000 (02:36 +0000)]
Revert "Fix the position of qemu_pipe header" am:
94ad9fbf53 am:
b0e5b30f13
am:
f10543b3b5
Change-Id: I239c1c42ac6e92290a7319c790fdbf91e354d94b
Christopher Ferris [Wed, 30 Nov 2016 02:31:41 +0000 (02:31 +0000)]
Revert "Fix the position of qemu_pipe header" am:
94ad9fbf53
am:
b0e5b30f13
Change-Id: Id43618ad8b4c83b41b0dfa709152640366071fd4
Christopher Ferris [Wed, 30 Nov 2016 02:26:11 +0000 (02:26 +0000)]
Revert "Fix the position of qemu_pipe header"
am:
94ad9fbf53
Change-Id: I042af868b1f418b0ee5902dc928b405717808cd1
Christopher Ferris [Sat, 22 Oct 2016 04:54:29 +0000 (04:54 +0000)]
Revert "Fix the position of qemu_pipe header"
This change should not have made it into master.
This reverts commit
3855dfbf428269d3c79dd7ba4b257ec5e9b917ff.
Test: Built full-eng, mmma -j30 device/generic/goldfish-opengl.
Change-Id: I4bffeae147464a7a158e0daa95155d87d0a9677b
(cherry picked from commit
2e11850e11ad1b8a548176a5dc8c223f252227d9)
Lingfeng Yang [Wed, 30 Nov 2016 00:52:35 +0000 (00:52 +0000)]
Revert "Revert "DO NOT MERGE ANYWHERE: Goldfish DMA-based gralloc""
This reverts commit
9b166b966d6f03f13f65d3134f9c5e1133ec10e2.
Change-Id: I9b10b45d1ebd3b51ede2f75cc8ab403914b0d777
Miao Wang [Tue, 29 Nov 2016 23:51:38 +0000 (23:51 +0000)]
Merge "Revert "DO NOT MERGE ANYWHERE: Goldfish DMA-based gralloc""
Miao Wang [Tue, 29 Nov 2016 23:43:24 +0000 (23:43 +0000)]
Revert "DO NOT MERGE ANYWHERE: Goldfish DMA-based gralloc"
This reverts commit
df3a043b96b90d949643ddd0219fc0bf4ff68040.
Change-Id: Ic87fa2f922bd61123e64fc32fc8ebb13dec4c219
Lingfeng Yang [Tue, 29 Nov 2016 22:29:29 +0000 (22:29 +0000)]
Merge "Fix build - add LOGV->ALOGV"
Lingfeng Yang [Tue, 29 Nov 2016 22:23:14 +0000 (14:23 -0800)]
Fix build - add LOGV->ALOGV
Change-Id: I669211faa3c58488c5b9b23d900a4e6da8e5c512
Lingfeng Yang [Tue, 29 Nov 2016 21:55:55 +0000 (21:55 +0000)]
Merge "DO NOT MERGE ANYWHERE: Goldfish DMA-based gralloc"
Lingfeng Yang [Sat, 24 Sep 2016 00:53:48 +0000 (17:53 -0700)]
DO NOT MERGE ANYWHERE: Goldfish DMA-based gralloc
Also includes YV12/YUV420888 conversion on the host.
Change-Id: Ie0c23f6e18ae96b2bdeadf6dbd4828ca1e7de8a0
Yahan Zhou [Wed, 23 Nov 2016 22:33:12 +0000 (22:33 +0000)]
Merge "DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG" into nyc-mr1-dev am:
ff9b220285 -s ours am:
ab60271bab -s ours am:
f09bf909ad -s ours
am:
d7e8dc892b -s ours
Change-Id: I3aa8dddf4571f482028eb873e29b3be2b2340a24
Yahan Zhou [Wed, 23 Nov 2016 22:33:01 +0000 (22:33 +0000)]
DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG am:
3a6d7c961e -s ours am:
db334bed50 -s ours am:
2737782b4d -s ours
am:
1e5fd1e94e -s ours
Change-Id: I1503e08d50a799e17c4f6bcb2a6d6a9ed5e6eb0b
Yahan Zhou [Wed, 23 Nov 2016 22:30:42 +0000 (22:30 +0000)]
Merge "DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG" into nyc-mr1-dev am:
ff9b220285 -s ours am:
ab60271bab -s ours
am:
f09bf909ad -s ours
Change-Id: I8247229fbca72d4a6b759935909f2e99c21e03b4
Yahan Zhou [Wed, 23 Nov 2016 22:30:33 +0000 (22:30 +0000)]
DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG am:
3a6d7c961e -s ours am:
db334bed50 -s ours
am:
2737782b4d -s ours
Change-Id: I4d55d909a22f5b9cf3298ef48d2aa00f6a0a8916
Yahan Zhou [Wed, 23 Nov 2016 22:28:28 +0000 (22:28 +0000)]
Merge "DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG" into nyc-mr1-dev am:
ff9b220285 -s ours
am:
ab60271bab -s ours
Change-Id: I14b8e7ee8e7e7a263ed170c3e595ac51b39bd6c5
Yahan Zhou [Wed, 23 Nov 2016 22:28:17 +0000 (22:28 +0000)]
DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG am:
3a6d7c961e -s ours
am:
db334bed50 -s ours
Change-Id: Id2246625716dad271de3dc9ce9f2ba0aff2a3df9
Yahan Zhou [Tue, 22 Nov 2016 22:03:56 +0000 (14:03 -0800)]
Fix glLinkProgram with invalid program name
glLinkProgram might try setting up program attributes even when an
invalid program name is passed to it. This patch fixes it.
BUG:
33069416
Change-Id: I93ed140095b67df47b158ba837c4aac8eb9e8e50
Yurii Zubrytskyi [Thu, 17 Nov 2016 23:44:03 +0000 (15:44 -0800)]
Fix a typo in HostConnection.cpp
Change-Id: I76217f256e2a80ef12be6cdbef5d2846da4323b0
Yahan Zhou [Fri, 11 Nov 2016 22:24:30 +0000 (22:24 +0000)]
Merge "DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG" into nyc-mr1-dev am:
ff9b220285 -s ours am:
ab60271bab -s ours am:
78454be75a -s ours
am:
0913dec00d -s ours
Change-Id: I37ac6d6e71a1b0e5de8407e99ed483ffd45f2913
Yahan Zhou [Fri, 11 Nov 2016 22:24:21 +0000 (22:24 +0000)]
DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG am:
3a6d7c961e -s ours am:
db334bed50 -s ours am:
096235db73 -s ours
am:
984acc9061 -s ours
Change-Id: I94e1c2dd22c4bac7cc2f478b3bf975c1efa6fc82
Yahan Zhou [Fri, 11 Nov 2016 22:17:30 +0000 (22:17 +0000)]
Merge "DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG" into nyc-mr1-dev am:
ff9b220285 -s ours am:
ab60271bab -s ours
am:
78454be75a -s ours
Change-Id: I3e7a223d68cd9c09d3a89e09cfe6ee778136e72c
Yahan Zhou [Fri, 11 Nov 2016 22:17:20 +0000 (22:17 +0000)]
DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG am:
3a6d7c961e -s ours am:
db334bed50 -s ours
am:
096235db73 -s ours
Change-Id: I5f193e47dc9952bf6572895620d6a29e808a015a
Yahan Zhou [Fri, 11 Nov 2016 22:10:30 +0000 (22:10 +0000)]
Merge "DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG" into nyc-mr1-dev am:
ff9b220285 -s ours
am:
ab60271bab -s ours
Change-Id: I7ce588a7d17ca2c4658ea4164a7a02fcbf368c52
Yahan Zhou [Fri, 11 Nov 2016 22:10:20 +0000 (22:10 +0000)]
DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG am:
3a6d7c961e -s ours
am:
db334bed50 -s ours
Change-Id: I6b9e70cedbf94e3cdcf3d9efce2e72842f82fbbe
Yahan Zhou [Fri, 11 Nov 2016 22:02:52 +0000 (22:02 +0000)]
Merge "DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG" into nyc-mr1-dev
am:
ff9b220285 -s ours
Change-Id: Ib6f93db2e813b170a5163784d992b76a5af13fa6
Yahan Zhou [Fri, 11 Nov 2016 22:02:52 +0000 (22:02 +0000)]
DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG
am:
3a6d7c961e -s ours
Change-Id: I6f779177478c02eed15b7d9d477028bf706d990b
Yahan Zhou [Fri, 11 Nov 2016 21:50:25 +0000 (21:50 +0000)]
Merge "DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG" into nyc-mr1-dev
Yahan Zhou [Wed, 19 Oct 2016 19:37:23 +0000 (12:37 -0700)]
DO NOT MERGE ANYWHERE Accept EGL_CONTEXT_PRIORITY_LEVEL_IMG
It is documented here:
https://www.khronos.org/registry/egl/extensions/IMG/EGL_IMG_context_priority.txt
b/
32239106
Change-Id: If0c4b39bed190a978539115d47bfbc1071903187
(cherry picked from commit
e5ec7d43cfaf31efea2913321404ca88cd3ddb04)
Yurii Zubrytskyi [Fri, 4 Nov 2016 19:01:36 +0000 (12:01 -0700)]
Faster HostConnection creation
- Implement queryGlString in a single guest->host call for most
cases: preallocate large enough buffer instead of querying for
its size.
- Don't copy std::string-s around when we only needs a cref
Change-Id: Iffc4e9e37a1f9010ab5dfd5a4c5528f783c41137
Yurii Zubrytskyi [Fri, 4 Nov 2016 18:59:27 +0000 (11:59 -0700)]
Re-generated protocol encoder files
- Don't add output parameters' size to the whole packet size,
reducing the amount of data copied over from guest to host.
- Use a static array for checksums instead of heap-allocated
buffer
This change is totally backward compatible for the protocol,
as it (1) removes the part emulator has never touched and
(2) changes only the guest's memory allocation way, not the
task that memory is used for
Corresponing emugen CL:
https://android-review.googlesource.com/#/c/299539/
Change-Id: Ic7c6d2bb21d57f1f6fb1622499344328f790783e
Yurii Zubrytskyi [Fri, 4 Nov 2016 18:57:02 +0000 (11:57 -0700)]
Improve ChecksumCalculator
- Expose the checksum sizes through public constants to allow
users to preallocate static arrays for those
- Get rid of a slower memcpy() operations in checksum calculation
Change-Id: Ieaa92fce7b32b75a5db0f94d505c917ecfa16f74
Lingfeng Yang [Tue, 25 Oct 2016 16:10:38 +0000 (09:10 -0700)]
Fix ARM boot with sync device
Change-Id: Id6cecb915b1b1f1a9db27019959d8ee9cc0d0659
Christopher Ferris [Mon, 24 Oct 2016 21:55:34 +0000 (21:55 +0000)]
Revert "Fix the position of qemu_pipe header" am:
8eb71f487d
am:
f382afc4b1
Change-Id: Ib8646a72bbda3e943a275c714025b76219e6f66f
Christopher Ferris [Mon, 24 Oct 2016 21:52:04 +0000 (21:52 +0000)]
Revert "Fix the position of qemu_pipe header"
am:
8eb71f487d
Change-Id: Icc9438c891817a3c5897df8005aaac2d7022b926
Christopher Ferris [Mon, 24 Oct 2016 21:47:34 +0000 (21:47 +0000)]
Revert "Fix the position of qemu_pipe header"
am:
6be28777eb
Change-Id: I5e1df716f587ba8e481b78e294f9b37431359e0f
Christopher Ferris [Sat, 22 Oct 2016 04:54:29 +0000 (04:54 +0000)]
Revert "Fix the position of qemu_pipe header"
The reverted CL should stay in nyc-mr1-dev only.
This reverts commit
3855dfbf428269d3c79dd7ba4b257ec5e9b917ff.
Test: Built full-eng, mmma -j30 device/generic/goldfish-opengl.
Change-Id: I4bffeae147464a7a158e0daa95155d87d0a9677b
(cherry picked from commit
2e11850e11ad1b8a548176a5dc8c223f252227d9)
(cherry picked from commit
6be28777eb169b7c09e396d23cb40d842a568e03)
Christopher Ferris [Sat, 22 Oct 2016 04:54:29 +0000 (04:54 +0000)]
Revert "Fix the position of qemu_pipe header"
The reverted CL should stay in nyc-mr1-dev only.
This reverts commit
3855dfbf428269d3c79dd7ba4b257ec5e9b917ff.
Test: Built full-eng, mmma -j30 device/generic/goldfish-opengl.
Change-Id: I4bffeae147464a7a158e0daa95155d87d0a9677b
(cherry picked from commit
2e11850e11ad1b8a548176a5dc8c223f252227d9)
Christopher Ferris [Sat, 22 Oct 2016 04:54:29 +0000 (04:54 +0000)]
Revert "Fix the position of qemu_pipe header"
This change should not have made it into master.
This reverts commit
3855dfbf428269d3c79dd7ba4b257ec5e9b917ff.
Test: Built full-eng, mmma -j30 device/generic/goldfish-opengl.
Change-Id: I4bffeae147464a7a158e0daa95155d87d0a9677b
Yahan Zhou [Sat, 22 Oct 2016 01:36:56 +0000 (01:36 +0000)]
Fix the position of qemu_pipe header
am:
3855dfbf42
Change-Id: I911247a7ccd041148a422862625bf484a99201db