pxafb: RGBT555 support
Hi all,
Great to see the 'recent' work on overlay support and color format fixes in pxafb.c.
Looks like I no longer need my local patches.
However, there is one thing that I cannot seem to accomplish just yet. We have an LCD which is connected in an RGBT555 configuration. That means somehow var->transp.length should be set to 1. After that, it looks like pxafb_set_pxifmt should do its job just fine.
Would it make sense to add transparency info to pxafb_mode_info? After all it is a hardware property, with our LCD and the way it is connected we won't be able to do RGB565, so our var->transp.length should be fixed at 1.
If pxafb_setmode could do that, based on the pxafb_mode_info, that would probably solve my problem.
Maybe something could be done by comparing 'depth' and 'bpp', if one is 16 and the other 15, one could make the assumption the remaining bit is used for transparency.
Or am I overlooking something here, and is there a better way to force pxafb to RGBT555 for my LCD?
Rgds, Pieter
Quoted 19 lines · On Thursday 29 October 2009 12:35:55 pieterg wrote:
Great to see the 'recent' work on overlay support and color format fixes in
pxafb.c.
Looks like I no longer need my local patches.However, there is one thing that I cannot seem to accomplish just yet. We have an LCD which is connected in an RGBT555 configuration. That means somehow
var->transp.lengthshould be set to 1. After that, it looks likepxafb_set_pxifmtshould do its job just fine.Would it make sense to add transparency info to
pxafb_mode_info? After all it is a hardware property, with our LCD and the way it is connected we won't be able to do RGB565, so ourvar->transp.lengthshould be fixed at 1.
Ifpxafb_setmodecould do that, based on thepxafb_mode_info, that would probably solve my problem.
Maybe something could be done by comparing 'depth' and 'bpp', if one is 16 and the other 15, one could make the assumption the remaining bit is used for transparency.
Quoted 2 lines
Or am I overlooking something here, and is there a better way to force pxafb to RGBT555 for my LCD?
Sorry to ask again, but is there an official/preferred way to select RGBT555 mode in pxafb, or should I just continue hacking it in for now?
Rgds, Pieter
Quoted 20 lines · pieterg
Quoted 19 lines · On Thursday 29 October 2009 12:35:55 pieterg wrote:
Great to see the 'recent' work on overlay support and color format fixes in
pxafb.c.
Looks like I no longer need my local patches.However, there is one thing that I cannot seem to accomplish just yet. We have an LCD which is connected in an RGBT555 configuration. That means somehow
var->transp.lengthshould be set to 1. After that, it looks likepxafb_set_pxifmtshould do its job just fine.Would it make sense to add transparency info to
pxafb_mode_info? After all it is a hardware property, with our LCD and the way it is connected we won't be able to do RGB565, so ourvar->transp.lengthshould be fixed at 1.
Ifpxafb_setmodecould do that, based on thepxafb_mode_info, that would probably solve my problem.
Maybe something could be done by comparing 'depth' and 'bpp', if one is 16 and the other 15, one could make the assumption the remaining bit is used for transparency.
Quoted 6 lines
Quoted 2 lines
Or am I overlooking something here, and is there a better way to force pxafb to RGBT555 for my LCD?
Sorry to ask again, but is there an official/preferred way to select RGBT555 mode in pxafb, or should I just continue hacking it in for now?
Unfortunately, transparency is part of depth and it's really not easy to distinguish between RGB565 and RGBT555 by depth and bits_per_pixel only without introducing something else.
Quoted 25 lines · On Wednesday 04 November 2009 10:34:25 Eric Miao wrote:
Quoted 24 lines · pieterg
Quoted 22 lines · On Thursday 29 October 2009 12:35:55 pieterg wrote:
Great to see the 'recent' work on overlay support and color format fixes in
pxafb.c.
Looks like I no longer need my local patches.However, there is one thing that I cannot seem to accomplish just yet. We have an LCD which is connected in an RGBT555 configuration. That means somehow
var->transp.lengthshould be set to 1. After that, it looks likepxafb_set_pxifmtshould do its job just fine.Would it make sense to add transparency info to
pxafb_mode_info? After all it is a hardware property, with our LCD and the way it is connected we won't be able to do RGB565, so ourvar->transp.lengthshould be fixed at 1.
Ifpxafb_setmodecould do that, based on thepxafb_mode_info, that would probably solve my problem.
Maybe something could be done by comparing 'depth' and 'bpp', if one is 16 and the other 15, one could make the assumption the remaining bit is used for transparency.Or am I overlooking something here, and is there a better way to force pxafb to RGBT555 for my LCD?
Quoted 6 lines
Quoted 2 lines
Sorry to ask again, but is there an official/preferred way to select RGBT555 mode in pxafb, or should I just continue hacking it in for now?
Unfortunately, transparency is part of depth and it's really not easy to distinguish between RGB565 and RGBT555 by depth and
bits_per_pixelonly without introducing something else.
So perhaps something like this (untested)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pxafb-added-transparency-field-to-pxafb_mode_info-st.patch
Type: text/x-diff
Size: 1364 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091104/f63783f4/attachment.bin>
Quoted 6 lines
Quoted 3 lines
Unfortunately, transparency is part of depth and it's really not easy to distinguish between RGB565 and RGBT555 by depth and
bits_per_pixelonly without introducing something else.So perhaps something like this (untested)?
This looks good to me - please have this tested and I'll merge it later if no other comments.
Quoted 8 lines · On Wednesday 04 November 2009 15:33:21 Eric Miao wrote:
Quoted 5 lines
Quoted 3 lines
Unfortunately, transparency is part of depth and it's really not easy to distinguish between RGB565 and RGBT555 by depth and
bits_per_pixelonly without introducing something else.So perhaps something like this (untested)?
This looks good to me - please have this tested and I'll merge it later if no other comments.
Tested, and it works.
Please use this version instead of the original one I posted, no matter how small it is, I still managed to get a typo in ;)
Rgds, Pieter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pxafb-added-transparency-field-to-pxafb_mode_info-st.patch
Type: text/x-diff
Size: 1364 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091105/d4844d42/attachment.bin>
Quoted 5 lines · On Thursday 05 November 2009 17:27:02 pieterg wrote:
Quoted 4 lines · On Wednesday 04 November 2009 15:33:21 Eric Miao wrote:
Quoted 4 lines
Quoted 3 lines
Unfortunately, transparency is part of depth and it's really not easy to distinguish between RGB565 and RGBT555 by depth and
bits_per_pixelonly without introducing something else.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
So perhaps something like this (untested)?
This looks good to me - please have this tested and I'll merge it later if no other comments.
Tested, and it works.
Please use this version instead of the original one I posted, no matter how small it is, I still managed to get a typo in ;)
Just for my information (and as a reminder perhaps), is this patch going to make it?
Rgds, Pieter
Quoted 11 lines · pieterg
Quoted 10 lines · On Thursday 05 November 2009 17:27:02 pieterg wrote:
Quoted 8 lines · On Wednesday 04 November 2009 15:33:21 Eric Miao wrote:
Quoted 5 lines
Quoted 3 lines
Unfortunately, transparency is part of depth and it's really not easy to distinguish between RGB565 and RGBT555 by depth and
bits_per_pixelonly without introducing something else.So perhaps something like this (untested)?
This looks good to me - please have this tested and I'll merge it later if no other comments.
Quoted 7 lines
Quoted 3 lines
Tested, and it works.
Please use this version instead of the original one I posted, no matter how small it is, I still managed to get a typo in ;)Just for my information (and as a reminder perhaps), is this patch going to make it?
Pieter,
You need to Signoff your patch before I can merge it, please see linux/Documentation/SubmittingPatches.
Thanks
- eric