Commit graph

111 commits

Author SHA1 Message Date
Jean-Baptiste Queru
cb4ea7ac8a am 7b584867: am cd347fdf: Allow to force 16bpp when 32bpp has problems
* commit '7b584867cdfef3ba393e308471d5da76024e249c':
  Allow to force 16bpp when 32bpp has problems
2011-04-05 11:22:04 -07:00
Jean-Baptiste Queru
cd347fdf74 Allow to force 16bpp when 32bpp has problems
Bug: 4197654

Change-Id: Icf1e8793d6a4d2e070a8f232efd4136d79339496
2011-03-31 19:58:27 -07:00
Iliyan Malchev
14e3641c32 hardware/libhardware: remove LOCAL_PRELINK_MODULE
Change-Id: I8a0ba7e4c99e334b9789d88b48383439eb7cc780
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-03-14 14:24:25 -07:00
David 'Digit' Turner
d8c4b8c050 am 36292755: am 25b68b5c: gralloc: Add support for 32-bit framebuffers.
* commit '3629275560f4a952cedd69c76b7b96b3b490f6f6':
  gralloc: Add support for 32-bit framebuffers.
2011-01-17 14:59:26 -08:00
David 'Digit' Turner
25b68b5c24 gralloc: Add support for 32-bit framebuffers.
Note: The code under hardware/libhardware/modules/gralloc/ is only used
      when running the system under the emulator.

Change-Id: I022978aeaacc5137c9917cd2ef6952dd3897ece4
2011-01-17 22:04:52 +01:00
David 'Digit' Turner
d72be75b45 am f540c44f: am 80d3699c: gralloc: Fix division-by-0 during system emulation.
* commit 'f540c44fc218bffcdfbc226187d3cdc08e213c32':
  gralloc: Fix division-by-0 during system emulation.
2011-01-16 13:06:33 -08:00
David 'Digit' Turner
80d3699c9e gralloc: Fix division-by-0 during system emulation.
This patch avoids a division-by-0 when the system is running
under emulation (the kernel driver reports pixclock as 0, for
some reason). Which results in a SIGFPE during the boot sequence.

Change-Id: Idb6bcdd58999ea9231f2411481c25929d5d02f1d
2011-01-15 21:06:12 +01:00
Jean-Baptiste Queru
f30ac95400 am 4829b184: am 118b5d79: Allow disabling page-flipping.
Merge commit '4829b184f15350de20096a97e583ed4c2b3d6427'

* commit '4829b184f15350de20096a97e583ed4c2b3d6427':
  Allow disabling page-flipping.
2010-10-18 16:41:56 -07:00
Jean-Baptiste Queru
118b5d7961 Allow disabling page-flipping.
Some devices have low-level bugs in their page-flip.

Disabling it at this level gives us more flexibility
than trying to control it elsewhere.

Bug: 3097357
Change-Id: Icc6ae172264e453bec0680e74a497a2b24299c4a
2010-10-14 19:05:09 -07:00
Mathias Agopian
2698f0cd99 Revert hwcomposer HAL. DO NOT MERGE.
This reverts commit cdd44a0db3.
This reverts commit e6b5c05aa0.
This reverts commit 5d3de309f4.
2010-08-17 20:29:08 -07:00
Mathias Agopian
e6b5c05aa0 Add a helper for dumping layers into the log
Change-Id: I0943d9114c33b4800fb797bac316041dec992f5e
2010-08-11 16:15:42 -07:00
Mathias Agopian
60d641e5eb Merge "first stab at hwcomposer HAL and default implementation." into gingerbread 2010-08-10 13:50:35 -07:00
Mathias Agopian
5d3de309f4 first stab at hwcomposer HAL and default implementation.
Change-Id: I7ff47b94a6b34a8f61031bd94e936a088dcea6ab
2010-08-09 17:15:16 -07:00
Mathias Agopian
a7932f47f1 fix typo in default overlay hal
Change-Id: I5313691acee74dfd69639946c01232256b22bc51
2010-08-06 17:50:56 -07:00
Mathias Agopian
7e734baec7 don't use undefined constants 2010-02-16 17:03:50 -08:00
Mathias Agopian
9da751bbf7 fix [2444483] gralloc size for YUV formats 2010-02-16 14:04:00 -08:00
Mathias Agopian
ee4e57e949 remove unused code 2009-12-15 17:22:56 -08:00
Mathias Agopian
f96b2064d7 remove all references to pmem and simplify the lock/unlock hooks
this gralloc module is only used on the emulator or without a h/w
renderer. therefore there is no synchronization to do in lock/unlock
and pmem buffers are not relevant.

hopefully this will remove some of the confusion about how gralloc
should be implemented and make it more obvious that this implementation
is not intended to be used by h/w renderers.
2009-12-15 15:00:57 -08:00
Patrick Scott
baf99300f7 Remove call to dump_l.
This fail to compile without NDEBUG and the following log statement does
something similar.
2009-10-29 08:33:42 -04:00
Mathias Agopian
fc05413281 split gralloc_priv.h and make sure it is C friendly 2009-08-18 17:35:44 -07:00
Mathias Agopian
876b4e8b84 integrate this change from the generic gralloc 2009-08-18 17:24:52 -07:00
Mathias Agopian
ed04f7871b don't memset ashmem region, especially before they're mmapped 2009-08-08 17:01:18 -07:00
Mathias Agopian
7d512e3dc3 add support for RGBX_8888 2009-08-07 20:55:37 -07:00
Mathias Agopian
e83629abb9 make sure to clear surface's buffers when they are allocated 2009-08-07 18:13:47 -07:00
Marco Nelissen
15c9d3af0d Fix the simulator build. 2009-07-17 11:15:18 -07:00
Mathias Agopian
3e1f89bcca fix [1980202] Surfaceflinger crash with transparent rollo on firestone
we now automatically size the pmem region isntead of using hardcoded values
2009-07-16 18:06:19 -07:00
Mathias Agopian
6d125da5d2 generic gralloc HAL doesn't need to support partial updates using msm7k specific ioctl. 2009-07-15 15:12:13 -07:00
Mathias Agopian
05eacf533e better logs 2009-07-13 18:32:37 -07:00
Mathias Agopian
82aee24379 automatically detect update-on-demand 2009-07-13 14:54:52 -07:00
Mathias Agopian
bd80b38f29 more fixes for [1965730]. We now free (unmap) both ashmem and pmem regions. 2009-07-07 17:53:43 -07:00
Mathias Agopian
440d4e4741 for [1965730], give a better name to gralloc buffers 2009-07-07 16:36:31 -07:00
Mathias Agopian
85ce19a4d3 fix [1965730] Device always give force close screen and completely unusable in Éclair build ERC07,rebooted automatically 2009-07-07 16:30:42 -07:00
Mathias Agopian
bfc010a750 better fix for gralloc on sim 2009-07-07 12:43:35 -07:00
Android (Google) Code Review
d34fd72bfd Merge change 6375
* changes:
  Fix build on some linux distros.
2009-07-07 12:21:48 -07:00
Mathias Agopian
d28d7e87f8 fix [1965734] Screen flickers a lot [Sholes] 2009-07-07 12:20:31 -07:00
Andy McFadden
f84106910d Fix build on some linux distros.
The place where the PAGE_SIZE value is defined varies, mostly because
you're not supposed to be using it directly.  sysconf(_SC_PAGE_SIZE)
is the approved method, and in fact some Linux distros actually #define
PAGE_SIZE to the library call.
2009-07-07 11:29:32 -07:00
Marco Nelissen
a4b587cb06 Simulator build fixes for the new GL stuff. The simulator still doesn't run, but at least it builds. 2009-07-07 09:29:00 -07:00
Mathias Agopian
cdb66fbc8a workaroud [1964234] emulator renders funny with new gralloc.
we detect we're running on the emu (using a very bad heuristic, see 1964251) and switch UPDATE_ON_DEMAND off.
2009-07-06 20:56:13 -07:00
Mathias Agopian
3d6ddfe771 fix [1964228] emulator crash with the new GL
gralloc didn't keep the error state properly, so after the first pmem allocation failure, it would systematically fail without reverting to ashmem.
2009-07-06 20:54:51 -07:00
Mathias Agopian
14784235ab make sure to UNSLAP pmem buffers when they're destroyed/freed, as the client could still have them mmapped 2009-07-02 17:32:15 -07:00
Mathias Agopian
8bf1f75268 add support for YUV formats 2009-06-25 17:38:50 -07:00
Mathias Agopian
689fa73c06 copybit now uses a native_handle_t* instead of a fd/offset 2009-06-24 20:36:52 -07:00
Mathias Agopian
31802ca9c0 fallback to ashmem when pmem is not availlable 2009-06-19 16:14:09 -07:00
Mathias Agopian
ed93e8b392 suppress debug log 2009-06-16 18:26:17 -07:00
Mathias Agopian
8c4ab1fa14 pmem allocator in gralloc. enabled for all surfaces. currently it uses a lot more address space than needed. 2009-06-16 18:16:38 -07:00
Mathias Agopian
72c8508db9 add an offset field to gralloc handles so the framebuffer can work with copybit 2009-06-10 16:06:28 -07:00
Mathias Agopian
5115665397 with the new lock/unlock API we don't really mean reference counting on mmap/munmap because we're guaranteed to map the buffers only once within a process.
no need to track all handles anymore, which simplifies the code a lot.
2009-06-09 20:50:34 -07:00
Mathias Agopian
82f7c04155 suppress spurious debug log 2009-06-03 19:03:26 -07:00
Mathias Agopian
f5cf8f842a better documentation for (*setUpdateRect)() 2009-05-07 17:39:31 -07:00
Mathias Agopian
485e69809a better documentation and implementation for lock/unlock 2009-05-05 20:49:49 -07:00
Mathias Agopian
295190f426 get rid of unused/needed flags 2009-05-05 18:30:52 -07:00
Mathias Agopian
988b8bd553 lock will now return the vaddr of the buffer. map/umap are gone.
- make sure to return an error if a buffer is locked twice or unlocked while not locked.
- added registerBuffer() and unregisterBuffer() to the gralloc module so that we can do some cleanup when a buffer is no longer needed. this became necessary after we removed map/unmap so we have a place to unmap buffers without the need of a kernel module.
- change the constants for GRALLOC_USAGE_SW_{READ|WRITE}_NEVER to 0, so that NOT specifying them means "NEVER".
2009-05-04 14:26:56 -07:00
Mathias Agopian
c3ce41d319 don't automatically unmap buffers when they're freed
this is in preparation to an api change wrt gralloc map/unmap
2009-04-14 18:24:09 -07:00
Mathias Agopian
a8a75166a2 Integrate from //sandbox/mathias/donut/...@145728
SurfaceFlinger rework for new EGL driver model support.
2009-04-10 14:24:31 -07:00
The Android Open Source Project
f53ebec387 auto import from //depot/cupcake/@135843 2009-03-03 19:32:14 -08:00
The Android Open Source Project
d51f49a11d auto import from //depot/cupcake/@135843 2009-03-03 18:28:48 -08:00
The Android Open Source Project
b376203efb auto import from //branches/cupcake/...@130745 2009-02-10 15:44:04 -08:00
The Android Open Source Project
f87393cb24 auto import from //branches/cupcake/...@127101 2009-01-20 14:03:59 -08:00
The Android Open Source Project
0100d517b1 auto import from //branches/cupcake/...@126645 2009-01-15 16:12:12 -08:00
The Android Open Source Project
699d24ab11 auto import from //branches/cupcake/...@125939 2009-01-09 17:51:24 -08:00
The Android Open Source Project
51704bed79 Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:50 -08:00