Premultiplied alpha is now supported on MDP3.x.
Enable it from userspace.
Also make flags as int since values are exceeding 255(uint8_t).
CRs-fixed: 347803
(cherry picked from commit 3dcbcb1f8672067f85e2f53e6321c27df6d6fbe6)
Change-Id: I865379b368726e95cab7aa669fbf27d5207240c5
- Fix the copybit source rect calculation for 180 and 270
degrees rotation. Calculate blit rects based on the source crop.
CRs-fixed: 337366
(cherry picked from commit 06aa97757bd7023234d3852801e05e077aaa1d2f)
Change-Id: Iba2e230acd84271fc5649e06918824752aa90670
Use a temporary buffer to replace inplace conversion
CRs-fixed: 333784
(cherry picked from commit 927542660e4c6106f8062c79bd6461c7fef55b4a)
Change-Id: I044bdaa31faea98552e35267bb78318317d68866
The x and y coordinates are derived properly from clip and dest rect with this fix.
- Even if rotation is involved, we need to start reading from the same point.
- Do scaling operation on the delta, and then add the source left and top values.
- If we scale the result of addition, we will not be reading source correctly.
CRs-fixed: 324782
Change-Id: I2876c6a8e48acbf03f80713338f9a17c57863aaa
Assign the correct blending value
for MDP 3.0, earlier it was
incorrectly assigned to zero
for cases where blending was not needed.
Change-Id: Icec6541616c8a9dc6ffc0e99c5b2936389799656
Add the copybit header file in the libcopybit directory. Modify the
copybit source files to read from the correct header file.
Change-Id: I8d2f6758c7d1fbbb6ffc513d899b62b3c0013f5e
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
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.
The kernel will only do it for images with an alpha plane.
Change-Id: Idcba41945ed7d17daae0a5bcc48c64a82a49dded
Signed-off-by: Dima Zavin <dima@android.com>