Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Froyo 32bpp fixes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mtx512  
View profile  
 More options Aug 2 2010, 3:48 am
From: mtx512 <mtx51...@gmail.com>
Date: Mon, 2 Aug 2010 00:48:41 -0700 (PDT)
Local: Mon, Aug 2 2010 3:48 am
Subject: Froyo 32bpp fixes
Hi,

Has anyone worked out the 32bpp fixes for Froyo. The patches for that
I had for Eclair (EGLDisplaySurface.cpp) won't work in Froyo.

many thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mtx512  
View profile  
 More options Aug 8 2010, 10:41 am
From: mtx512 <mtx51...@gmail.com>
Date: Sun, 8 Aug 2010 07:41:43 -0700 (PDT)
Local: Sun, Aug 8 2010 10:41 am
Subject: Re: Froyo 32bpp fixes
The initial patches to get the screen displayed correctly are below. I
think a similar patch may need to be applied to some of the
applications to get them to display correctly.

project hardware/libhardware/
diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/
framebuffer.cpp
index 0195103..213af32 100644
--- a/modules/gralloc/framebuffer.cpp
+++ b/modules/gralloc/framebuffer.cpp
@@ -174,7 +174,7 @@ int mapFrameBufferLocked(struct private_module_t*
module)
     /*
      * Explicitly request 5/6/5
      */
-    info.bits_per_pixel = 16;
+/*    info.bits_per_pixel = 16;
     info.red.offset     = 11;
     info.red.length     = 5;
     info.green.offset   = 5;
@@ -183,6 +183,16 @@ int mapFrameBufferLocked(struct private_module_t*
module)
     info.blue.length    = 5;
     info.transp.offset  = 0;
     info.transp.length  = 0;
+*/
+    info.bits_per_pixel = 32;
+    info.red.offset     = 24;
+    info.red.length     = 8;
+    info.green.offset   = 16;
+    info.green.length   = 8;
+    info.blue.offset    = 8;
+    info.blue.length    = 8;
+    info.transp.offset  = 0;
+    info.transp.length  = 0;

      /*
      * Request NUM_BUFFERS screens (at lest 2 for page flipping)
@@ -347,7 +357,8 @@ int fb_device_open(hw_module_t const* module,
const char* name,
             const_cast<uint32_t&>(dev->device.width) = m->info.xres;
             const_cast<uint32_t&>(dev->device.height) = m->info.yres;
             const_cast<int&>(dev->device.stride) = stride;
-            const_cast<int&>(dev->device.format) =
HAL_PIXEL_FORMAT_RGB_565;
+//            const_cast<int&>(dev->device.format) =
HAL_PIXEL_FORMAT_RGB_565;
+            const_cast<int&>(dev->device.format) =
HAL_PIXEL_FORMAT_RGBA_8888;
             const_cast<float&>(dev->device.xdpi) = m->xdpi;
             const_cast<float&>(dev->device.ydpi) = m->ydpi;
             const_cast<float&>(dev->device.fps) = m->fps;

On Aug 2, 8:48 am, mtx512 <mtx51...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yi Sun  
View profile  
 More options Aug 8 2010, 2:17 pm
From: Yi Sun <beyo...@gmail.com>
Date: Sun, 8 Aug 2010 11:17:22 -0700
Local: Sun, Aug 8 2010 2:17 pm
Subject: Re: Froyo 32bpp fixes
How about the performance?
Yi

On Aug 8, 2010, at 7:41 AM, mtx512 <mtx51...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mtx512  
View profile  
 More options Aug 8 2010, 3:54 pm
From: mtx512 <mtx51...@gmail.com>
Date: Sun, 8 Aug 2010 12:54:00 -0700 (PDT)
Subject: Re: Froyo 32bpp fixes
We're still depend on finding a OpenGL ES driver for adequate
performance.

On Aug 8, 7:17 pm, Yi Sun <beyo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yi Sun  
View profile  
 More options Aug 9 2010, 12:35 am
From: Yi Sun <beyo...@gmail.com>
Date: Sun, 8 Aug 2010 21:35:14 -0700
Local: Mon, Aug 9 2010 12:35 am
Subject: Re: Froyo 32bpp fixes
I assume that you have test this patch somehow, do you mind that I put
this patch on to the android-x86.org downloading page? And we could
merge it into the foyo tree later.
Yi

--
Android-x86
http://www.android-x86.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mtx512  
View profile  
 More options Aug 9 2010, 8:40 am
From: mtx512 <mtx51...@gmail.com>
Date: Mon, 9 Aug 2010 05:40:13 -0700 (PDT)
Local: Mon, Aug 9 2010 8:40 am
Subject: Re: Froyo 32bpp fixes
Yes you can put the patch on android-x86.org.

I'm testing for x86 by building the source from the main repo
(android.git.kernel.org), unfortunately the trunk for froyo has now
been restricted to build a 64 bit OS only. Therefore I'm currently
using the tag android-2.2_r1.1. I'm currently trying to fix
touchscreen for my board as well explore an OpenGL ES solution for
GMA500.

On Aug 9, 5:35 am, Yi Sun <beyo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yi Sun  
View profile  
 More options Aug 9 2010, 2:51 pm
From: Yi Sun <beyo...@gmail.com>
Date: Mon, 9 Aug 2010 11:51:15 -0700
Local: Mon, Aug 9 2010 2:51 pm
Subject: Re: Froyo 32bpp fixes
On Mon, Aug 9, 2010 at 5:40 AM, mtx512 <mtx51...@gmail.com> wrote:
> Yes you can put the patch on android-x86.org.

> I'm testing for x86 by building the source from the main repo
> (android.git.kernel.org), unfortunately the trunk for froyo has now
> been restricted to build a 64 bit OS only. Therefore I'm currently
> using the tag android-2.2_r1.1. I'm currently trying to fix
> touchscreen for my board as well explore an OpenGL ES solution for
> GMA500.

Just a double confirm, you did tested your patch with android-2.2_r1.1
and it works, right?

--
Android-x86
http://www.android-x86.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mtx512  
View profile  
 More options Aug 9 2010, 4:03 pm
From: mtx512 <mtx51...@gmail.com>
Date: Mon, 9 Aug 2010 13:03:04 -0700 (PDT)
Local: Mon, Aug 9 2010 4:03 pm
Subject: Re: Froyo 32bpp fixes
Yes have tested, my screen now displays correctly.

On Aug 9, 7:51 pm, Yi Sun <beyo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yi Sun  
View profile  
 More options Aug 9 2010, 11:58 pm
From: Yi Sun <beyo...@gmail.com>
Date: Mon, 9 Aug 2010 20:58:55 -0700
Local: Mon, Aug 9 2010 11:58 pm
Subject: Re: Froyo 32bpp fixes
Done
https://sites.google.com/a/android-x86.org/web/download/32bpp.patch?a...

I guess we will push it to repo as soon as we have a solution on the
performance.
Yi

--
Android-x86
http://www.android-x86.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chih-Wei Huang  
View profile  
 More options Aug 20 2010, 5:16 am
From: Chih-Wei Huang <cwhu...@android-x86.org>
Date: Fri, 20 Aug 2010 17:16:47 +0800
Local: Fri, Aug 20 2010 5:16 am
Subject: Re: Froyo 32bpp fixes
Hi,
I'm testing the 32bpp patch.
It seems work, but the color is wrong.
Test on both on vm (uvesafb) and eeepc(i915),
with kernel 2.6.35.

Finally I found I have to change the pixel format
to BGRA_8888 to have the correct color:

const_cast<int&>(dev->device.format) = HAL_PIXEL_FORMAT_BGRA_8888;

Do you know what the problem is?

2010/8/10 mtx512 <mtx51...@gmail.com>:

> Yes have tested, my screen now displays correctly.

--
Chih-Wei
Android-x86 project
http://www.android-x86.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jack  
View profile  
 More options Aug 22 2010, 10:57 pm
From: Jack <jlee2...@gmail.com>
Date: Sun, 22 Aug 2010 19:57:43 -0700 (PDT)
Local: Sun, Aug 22 2010 10:57 pm
Subject: Re: Froyo 32bpp fixes
It is a way to hard code for 32bpp. That is not good if we want to
support devices which could not support it. Is there a way to
automatically detect current depth and initialize the framebuffer for
it?

On 8月20日, 下午5时16分, Chih-Wei Huang <cwhu...@android-x86.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chih-Wei Huang  
View profile  
 More options Aug 22 2010, 11:46 pm
From: Chih-Wei Huang <cwhu...@android-x86.org>
Date: Mon, 23 Aug 2010 11:46:21 +0800
Local: Sun, Aug 22 2010 11:46 pm
Subject: Re: Froyo 32bpp fixes
Hmm, good suggestion.
I just checked the code.
Yes, it's possible to detect the bpp
at runtime.

在 2010年8月23日上午10:57,Jack <jlee2...@gmail.com> 寫道:

> It is a way to hard code for 32bpp. That is not good if we want to
> support devices which could not support it. Is there a way to
> automatically detect current depth and initialize the framebuffer for
> it?

--
Chih-Wei
Android-x86 project
http://www.android-x86.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »