Commit Graph

7756 Commits

Author SHA1 Message Date
Brett Chabot
f20c9766b7 Merge "Add systemui tests to testdefs." 2011-08-17 15:43:33 -07:00
Brett Chabot
eec5042131 Add systemui tests to testdefs.
Change-Id: I4aff7f9da59da7f0da290d5b78322e97ab41f639
2011-08-17 15:40:03 -07:00
Daniel Sandler
0517450434 Merge "Reduce build widget footprint to 1x1." 2011-08-16 12:25:29 -07:00
Daniel Sandler
12a9a5aeed Reduce build widget footprint to 1x1.
Default footprint, that is.

Change-Id: Ic8cdd0f97065291837b39bb79585fb86bdf23644
2011-08-16 14:01:05 -04:00
David Turner
27cc0fe3dd am c2f31ef2: am dba6bd45: am ca7a7b05: Merge "opengles emulator: use bionic tls slot"
* commit 'c2f31ef27b778e77e71a918276f6f6cad0e7d071':
  opengles emulator: use bionic tls slot
2011-08-16 07:56:07 -07:00
David Turner
c2f31ef27b am dba6bd45: am ca7a7b05: Merge "opengles emulator: use bionic tls slot"
* commit 'dba6bd45f8a7398d217c6418211dfc9d2c34966d':
  opengles emulator: use bionic tls slot
2011-08-16 07:54:53 -07:00
David Turner
dba6bd45f8 am ca7a7b05: Merge "opengles emulator: use bionic tls slot"
* commit 'ca7a7b0571701d5b552456bb1367ed50faf1c5ce':
  opengles emulator: use bionic tls slot
2011-08-16 07:53:23 -07:00
David Turner
ca7a7b0571 Merge "opengles emulator: use bionic tls slot" 2011-08-16 07:35:29 -07:00
David Turner
f297a9e9d8 am 436dc98c: am 11064844: am 8066f12a: Merge "opengles emulator: code cleanup removing dead code"
* commit '436dc98c3d8f803e3f14cdc1193048240c7a31e7':
  opengles emulator: code cleanup removing dead code
2011-08-16 06:59:43 -07:00
David Turner
436dc98c3d am 11064844: am 8066f12a: Merge "opengles emulator: code cleanup removing dead code"
* commit '11064844ee9ed8123f1e5f815e1982bb3101dc8b':
  opengles emulator: code cleanup removing dead code
2011-08-16 06:55:50 -07:00
David Turner
11064844ee am 8066f12a: Merge "opengles emulator: code cleanup removing dead code"
* commit '8066f12a07b050809c62fda1bdae5296e81a4c11':
  opengles emulator: code cleanup removing dead code
2011-08-16 06:53:37 -07:00
David Turner
8066f12a07 Merge "opengles emulator: code cleanup removing dead code" 2011-08-16 06:30:56 -07:00
Guy Zadickario
75094ee1ac opengles emulator: use bionic tls slot
This make the EGL/GLESv1/GLESv2 libraries on the guest to use
the OPENGL bionic tls slot for faster tls access.
Note that we still setting the slower tls in order to have the
tls destructor which allow us to close the host connection
when the thread exits.

Gives slightly performance improvement, the avg score for the
teapot test in 0xBench goes from 34 to 37 fps. (This test is
near immediate mode since it renders a lot of small primitives
so it is a good candicate to be improved).

Change-Id: I9060c75cc29c2e28721fa11d3f318b438edb5da9
2011-08-16 15:12:03 +03:00
David Turner
0ccfb0b02f am 61a5598a: am ca84c2cf: am 2c68d0f3: Merge "opengles emulator: replace the readback at end of frame with blit"
* commit '61a5598aed847bc4cf6003b3cdbc96863b6f4ba2':
  opengles emulator: replace the readback at end of frame with blit
2011-08-16 03:52:13 -07:00
David Turner
61a5598aed am ca84c2cf: am 2c68d0f3: Merge "opengles emulator: replace the readback at end of frame with blit"
* commit 'ca84c2cf37597603f6502c9ba51ca8dbdccaa76d':
  opengles emulator: replace the readback at end of frame with blit
2011-08-16 03:38:49 -07:00
David Turner
ca84c2cf37 am 2c68d0f3: Merge "opengles emulator: replace the readback at end of frame with blit"
* commit '2c68d0f347fa1c8a5bc51c34399173e4592dc831':
  opengles emulator: replace the readback at end of frame with blit
2011-08-16 03:35:39 -07:00
David Turner
2c68d0f347 Merge "opengles emulator: replace the readback at end of frame with blit" 2011-08-16 03:23:55 -07:00
Guy Zadickario
b9a5baf42b opengles emulator: code cleanup removing dead code
This change removes the 'blitFromPbuffer' path in the renderer
which uses binding pbuffer to texture. This path does not work
on all platforms and is not relavent any more. It simplifies
a lot the FBConfig filtering code.

Also, added a check to fail the renderer initialization if
the translator plugin does not support EGL_KHR_gl_texture_2d_image
and GL_OES_EGL_IMAGE (by both GLES implementations [1 and 2])
since our implementation requires it.

Change-Id: Ifd4c66943a8da56308cfb7e38914c962b4f5befe
2011-08-16 12:14:02 +03:00
Guy Zadickario
8c962dce6c opengles emulator: replace the readback at end of frame with blit
That replaces the readback to host we do at the end of each frame
with two blits on the GPU, one to copy the pixels into a texture
and another to render the texture to another in order to flip
the image.

Change-Id: I7e0e10493d38944d0b613e245023f34236d3dfc4
2011-08-16 10:52:19 +03:00
Dianne Hackborn
b4ac2b3b35 Update to follow framework change.
Change-Id: I4ce9cadc9a3a5e34bc0fc4cf01ebb0cd1447f913
2011-08-15 18:25:56 -07:00
David Turner
d1e8a2e257 am 53aef614: am e8026df0: am e16a448d: Merge "emulator opengles: improve TcpStream throughput"
* commit '53aef61457167f1dae050a30df7ed7f49ac55cc3':
  emulator opengles: improve TcpStream throughput
2011-08-15 16:23:33 -07:00
David Turner
53aef61457 am e8026df0: am e16a448d: Merge "emulator opengles: improve TcpStream throughput"
* commit 'e8026df0df8a26cb75b7756079759c6973f6e40f':
  emulator opengles: improve TcpStream throughput
2011-08-15 16:21:30 -07:00
David Turner
e8026df0df am e16a448d: Merge "emulator opengles: improve TcpStream throughput"
* commit 'e16a448df04a66e36bc9e48cc1c322187f65ef46':
  emulator opengles: improve TcpStream throughput
2011-08-15 16:19:46 -07:00
David Turner
e16a448df0 Merge "emulator opengles: improve TcpStream throughput" 2011-08-15 15:58:42 -07:00
David Turner
3ae6928d8d emulator opengles: improve TcpStream throughput
This patch improves the performance of the TcpStream implementation
on the host by disabling the Nagle algorithm, thus improving the
bandwidth of small packets.

When used with the corresponding change in the emulator, this
significantly improves the speed of OpenGLES emulation for many
applications.

Change-Id: Ic09e51ecddf04bc7d667f46e1d260030d5fcad88
2011-08-16 00:55:43 +02:00
David Turner
a765188519 am b0892c55: am 698014ea: am 36371ff3: Merge "opengles emulator: do single display connection for all subwindow"
* commit 'b0892c5572c0f8547251d4932f32fcd1e24d3fc7':
  opengles emulator: do single display connection for all subwindow
2011-08-15 10:29:08 -07:00
David Turner
ab1ebd2fde am 0a4e10bb: am 57e03b4c: am ec926484: Merge "EGL translator : fix windows egl for handling device contexts"
* commit '0a4e10bb4920ab89670f7a65f8d87000cce452b4':
  EGL translator : fix windows egl for handling device contexts
2011-08-15 10:29:06 -07:00
David Turner
b0892c5572 am 698014ea: am 36371ff3: Merge "opengles emulator: do single display connection for all subwindow"
* commit '698014ea6faf5f3445fc10c97270e11a7afa50d1':
  opengles emulator: do single display connection for all subwindow
2011-08-15 10:25:51 -07:00
David Turner
0a4e10bb49 am 57e03b4c: am ec926484: Merge "EGL translator : fix windows egl for handling device contexts"
* commit '57e03b4cc5d2a29957d0749d6bb9baeaafb9eab6':
  EGL translator : fix windows egl for handling device contexts
2011-08-15 10:25:49 -07:00
David Turner
698014ea6f am 36371ff3: Merge "opengles emulator: do single display connection for all subwindow"
* commit '36371ff3eb65acbac977f349514a49fc3ade4290':
  opengles emulator: do single display connection for all subwindow
2011-08-15 10:23:54 -07:00
David Turner
57e03b4cc5 am ec926484: Merge "EGL translator : fix windows egl for handling device contexts"
* commit 'ec926484c0c9f6f7597ef88767eb4d22190f23af':
  EGL translator : fix windows egl for handling device contexts
2011-08-15 10:23:52 -07:00
David Turner
36371ff3eb Merge "opengles emulator: do single display connection for all subwindow" 2011-08-15 10:04:52 -07:00
David Turner
ec926484c0 Merge "EGL translator : fix windows egl for handling device contexts" 2011-08-15 10:04:43 -07:00
Yochai Shefi Simchon
a6b033d19e opengles emulator: do single display connection for all subwindow
This is a workaround to a driver bug on Intel/Linux, when destroying
a subwindow do not close the X display connection, keep it for the
next call to createSubWindow. It happens that the intel/linux driver
caches the display connection for each window ID and use it during
swap or something similar. Using the same display connection for
all subwindows workaround the problem.

Also added a wait loop to wait until the window becomes mapped
instead of just calling XSync after calling XMapWindow. This
is more accurate and make sure we do not miss the first window
refresh.

Change-Id: I63c69d736df433666a8c79d71127afe72776e89f
2011-08-15 19:03:53 +02:00
Yochai Shefi Simchon
2a581c9cb2 EGL translator : fix windows egl for handling device contexts
on eglCreateContext the translator created a window for the
specified config with a matching pixelformat and saved it's
device context for future use.
however when the thread exited the window was destroyed by windows
and the handle saved became invalid.
the next call to wglCreateContext with the handle saved failed.

fixed the problem by creating windows per thread and not in a
global pool.
each thread will create its own window for each config when asked
the window will be destroyed when the thread exits.

Change-Id: I63668a20e8c30c42c4cfcaca664938683600b28e
2011-08-15 19:03:53 +02:00
David Turner
021cf0a639 am 72a716b4: am 7d644a74: am 0c245f6a: Merge "opengles emulator: do not publish support for setUpdateRect"
* commit '72a716b4d1b6980d9bd104010bca48eeba4a4ac2':
  opengles emulator: do not publish support for setUpdateRect
2011-08-15 10:00:28 -07:00
David Turner
d67ad7303c am dab1fb3b: am 0315d710: am 06039b1e: Merge "opengles emulator: call XInitThreads in emulator_test_renderer"
* commit 'dab1fb3b90b3570e761bf6b5b13a0e03ed1e0e18':
  opengles emulator: call XInitThreads in emulator_test_renderer
2011-08-15 10:00:24 -07:00
David Turner
72a716b4d1 am 7d644a74: am 0c245f6a: Merge "opengles emulator: do not publish support for setUpdateRect"
* commit '7d644a7468113c78a08725a817a518f8ddd5ae55':
  opengles emulator: do not publish support for setUpdateRect
2011-08-15 09:58:07 -07:00
David Turner
dab1fb3b90 am 0315d710: am 06039b1e: Merge "opengles emulator: call XInitThreads in emulator_test_renderer"
* commit '0315d710171f2453699ac97dd0359c05616f30b0':
  opengles emulator: call XInitThreads in emulator_test_renderer
2011-08-15 09:58:05 -07:00
David Turner
7d644a7468 am 0c245f6a: Merge "opengles emulator: do not publish support for setUpdateRect"
* commit '0c245f6a4abe8a5ad26e0f0939ee624bc4fcf3d3':
  opengles emulator: do not publish support for setUpdateRect
2011-08-15 09:56:34 -07:00
David Turner
0315d71017 am 06039b1e: Merge "opengles emulator: call XInitThreads in emulator_test_renderer"
* commit '06039b1e3be0ace898f28c3f4742a2879d9767b9':
  opengles emulator: call XInitThreads in emulator_test_renderer
2011-08-15 09:56:32 -07:00
David Turner
0c245f6a4a Merge "opengles emulator: do not publish support for setUpdateRect" 2011-08-15 09:21:39 -07:00
David Turner
06039b1e3b Merge "opengles emulator: call XInitThreads in emulator_test_renderer" 2011-08-15 09:20:45 -07:00
Guy Zadickario
22bb339abb opengles emulator: do not publish support for setUpdateRect
our framebuffer implementation in gralloc does not support
setUpdateRect but we erronously publish as we do. Reset
the setUpdateRect so that flinger will not try to use it.

Change-Id: I2e4f2ef7e5701aed69caa194426945bafd5ac4c9
2011-08-15 16:46:57 +03:00
Guy Zadickario
bdfb71562c opengles emulator: call XInitThreads in emulator_test_renderer
Now that we are not running the renderer as a seperate process
we need to have the XInitThreads call we put in the renderer process
inside emulator_test_renderer since the render server runs inside that
thread.
NOTE FOR INTEGRATION: this will need to be added to the emulator as
well.

Change-Id: I70592ad976d08c86e2c9e75b11b6ad57d6067606
2011-08-15 16:46:57 +03:00
Daniel Lehmann
3335843705 Include the new activity classes in the samples
Bug:5135808
Change-Id: I08244836b57564e108f3b36e520a3cce95158cc7
2011-08-14 15:45:28 -07:00
David Turner
738c2204c5 am 7dc8b4a7: am 3d9ae4e7: am caf8eafb: Merge "opengles emulator: support display rotation and resize"
* commit '7dc8b4a786d653174a3c40d9bd31eff57ce69502':
  opengles emulator: support display rotation and resize
2011-08-13 16:17:50 -07:00
David Turner
8422d79bf2 am 3167d2a9: am f8f0a7e9: am d33222df: Merge "opengles emulator: mac support binding context to pbuffer"
* commit '3167d2a9c777757fd458c8122aff92bf251d485f':
  opengles emulator: mac support binding context to pbuffer
2011-08-13 16:17:48 -07:00
David Turner
ec40e438e3 am 3d7e82c0: am b76d1f0a: am 255bdd3f: Merge "opengles emulator: fix shader parser precision qualifiers"
* commit '3d7e82c0c048e2a8662020aa78db0c21859deb6c':
  opengles emulator: fix shader parser precision qualifiers
2011-08-13 16:17:46 -07:00
David Turner
dc650add7b am 252e2903: am 7014f052: am dd7d29e0: Merge "opengles emulator: added FPS statistics printout"
* commit '252e29031d59ed6ff49e27844b1c0ed22ee676fd':
  opengles emulator: added FPS statistics printout
2011-08-13 16:17:43 -07:00