Commit Graph

31 Commits

Author SHA1 Message Date
Naomi Luis
0818f64a0e copybit_c2d: Disable alpha for the RGBX format
Set the C2D_FORMAT_DISABLE_ALPHA for the RGBX format.
2011-09-19 19:16:35 -05:00
Naomi Luis
f90406e9e1 copybit_c2d: Use the framebuffer stride to calculate position
Use the framebuffer stride instead of the framebuffer width when
calculating the position for rotation.

CRs-fixed: 280765
2011-09-19 19:16:35 -05:00
Naomi Luis
9ff34af7fa copybit_c2d: Disable blend during blit
When performing the copybit blit operation, do a blind blit of the
surfaces. The blending operation should be done when the stretch operation
is invoked.
2011-09-19 19:16:35 -05:00
Kinjal Bhavsar
cc2834b226 msm7k: Use sanitized kernel headers
Add the exported sanitized kernel headers to include path in C2D/
copybit, gralloc and overlay HAL libraries.

(cherry picked from commit a70f426e8695cc5bbf8a45b987b5715784f7e924)

Change-Id: I1dbb79a086e9cb062e1264c1c354ac5ce1a05f27
2011-09-19 19:16:34 -05:00
Naomi Luis
05ff4bb661 copybit_c2d: Set the kgsl memory type as pmem for buffers with the PRIV_FLAGS_USES_PMEM_ADSP flag
Gralloc buffers which have the PRIV_FLAGS_USES_PMEM_ADSP
flag are allocated from a pmem region.

Set the kgsl memory type to PMEM to reflect this change.

Change-Id: Id5b84277ddec5cc9550aa97d2789df4d1bc2b2b5
2011-09-19 19:16:33 -05:00
Naomi Luis
7725e18ca3 libcopybit: Add copybit and copybit_c2d changes from Gingerbread
Change-Id: I39ccc7579f89d08eae809b47e434601aee6973a2
2011-09-19 19:16:32 -05:00
Mathias Agopian
6c2bc88a03 remove unused YUV formats
Change-Id: Ia590a9cb9a02bf62f35da344f29775d1256e3da7
2010-07-01 21:19:31 -07:00
Jean-Baptiste Queru
ec040bb3a1 Add tags and notices where appropriate.
Also tweak copyright notices as appropriate.

Bug: 2084753
Change-Id: Ifbf795b8b16dbc45cf5ac9a72b97f2b74cbf3550
2010-03-19 15:50:23 -07:00
Mathias Agopian
e55ffb9bb8 gralloc and copybit now can properly handle EBI or SMI GPU surfaces
up until now we relied on the EBI region map_offset being zero, which
prevented us to use SMI for surfaces, as their map_offset is different.
the copybit hal needs the map_offset to figure out which region to use.

Change-Id: I920b31ecb77a7b0943dfcd8e3362e2c38ac83297
2010-03-18 18:16:45 -07:00
Mathias Agopian
a5ffced80a add support for YCbCr (as opposed to YCrCb) to copybit 2010-02-17 18:02:17 -08:00
Mathias Agopian
f238b9e88c temporary hack to map the correct yuv format to the current (broken) mdp constants 2010-02-16 19:44:06 -08:00
Mathias Agopian
ef686c51fd should help [2223746] qsd8k MDP locks up, logs show copyBits failed (Connection timed out) in Passion camera zoom level 1
make sure to return an error when mdp limits are exceeded
2009-11-11 16:28:21 -08:00
Mathias Agopian
9e8b8a119d enable mdp debugging on error, also check for invalid inputs 2009-11-09 20:15:50 -08:00
Mathias Agopian
b73f40535f fix[2222341] Soft reset while going back from camcorder settings
add a way to convert a mapped "pushbuffer" buffer to a gralloc handle
which then can be safely used by surfaceflinger

also make sure to not send empty rectangles to the MDP.
2009-10-30 14:52:52 -07:00
Dima Zavin
d24467414b copybit: hack to always request premultiplied alpha blend.
The kernel will only do it for images with an alpha plane.

Change-Id: Idcba41945ed7d17daae0a5bcc48c64a82a49dded
Signed-off-by: Dima Zavin <dima@android.com>
2009-09-24 01:10:49 -07:00
Dima Zavin
03f9cb24dd libcopybit: Fix typo, and the build
Change-Id: I4f75e7ee4eff4f6159099de92ae3b4501ad7474a
Signed-off-by: Dima Zavin <dima@android.com>
2009-09-08 18:49:41 -07:00
Mathias Agopian
f2d52d61f9 QSD8K supports 8x scaling 2009-09-08 16:18:51 -07:00
Mathias Agopian
1e11826433 fix a bug with RGBX_8888 surfaces would be rendered incorrectly by the MDP. 2009-08-21 18:19:16 -07:00
Mathias Agopian
5eabeaf821 add support for RGBX_8888. HOWEVER MDP doesn't support it yet, so we use XRGB which looks wrong for now 2009-08-07 20:56:29 -07:00
Mathias Agopian
32a0f80413 make sure to use the right 32-bit pixelformat on msm7k when using the gpu 2009-08-07 19:09:35 -07:00
Mathias Agopian
641eb403cc really fix the build 2009-07-31 16:49:29 -07:00
Mathias Agopian
06bd510731 should fix qsd8k builds 2009-07-31 16:33:08 -07:00
Mathias Agopian
50b3755b7d don't send the GPU master fd across to client processes 2009-07-31 15:09:12 -07:00
Mathias Agopian
7af3a32e12 fix build 2009-07-15 16:31:02 -07:00
Mathias Agopian
c65f33f597 msm7k now has its own gralloc module -- currently identical to the default gralloc, soon to be different 2009-07-15 15:02:32 -07:00
Dima Zavin
9a7afa61af libcopybit: Fix build for qsd8k
copybit.c got renamed

Signed-off-by: Dima Zavin <dima@android.com>
2009-07-07 11:23:59 -07:00
Mathias Agopian
15c05d1fa9 Merge commit 'goog/master' into merge_master 2009-07-01 18:33:21 -07:00
Dima Zavin
fd3bc52cfe copybit: also build for qsd8k 2009-06-25 13:50:54 -07:00
Mathias Agopian
00bd746427 copybit now uses a native_handle_t* instead of a fd/offset 2009-06-24 20:35:49 -07:00
Mathias Agopian
a6abcb41dd AI 143310: am: CL 143161 am: CL 142857 Add some bluring to the animation. This requires a new kernel which will be checked-in later, at which point the blur effect will automatically be enabled.
Original author: mathias
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143310
2009-03-27 17:59:34 -07:00
The Android Open Source Project
102e25e367 auto import from //branches/cupcake/...@137873 2009-03-12 11:02:43 -07:00