Thread (18 messages) 18 messages, 7 authors, 2005-08-08

Re: [Linux-fbdev-devel] CRTC scanout buffer types

From: Vladimir Dergachev <hidden>
Date: 2005-08-08 02:05:24


On Mon, 8 Aug 2005, Antonino A. Daplas wrote:
Vladimir Dergachev wrote:
quoted
quoted
I agree that something like the above is acceptable, exept that we need
an extra field for offset and another if indexed color or not. So 
something like:

A:2/0/R:10/2/G:10/12/B:10/22//I
This is getting more cryptic by the minute.

Can't we have a simple field: value lines ? Something like:
AlphaBits: 2
AlphaOffset: 0
The problem with doing that is you need to set everything in one go.
Separating all those fields into different sysfs attributes will have
a problem with synchronization.

One workaround is to have another attribute 'Activate'. Nothing is set
until the 'Activate' attribute is written to.  There is still the problem
of another process changing the other attributes behind the back of the
original process.
I think "Activate" is a good idea and it kinda mimics what graphics chips 
themselves do, so another reason to like it.

As for simultaneous access - does it actually make sense that two programs
would want to change screen format at the same time ?

Even if access is serialized in some fashion, at most one of the programs 
will get format that it requested, so we lose nothing by allowing it to be 
none.

                         best

                              Vladimir Dergachev
Tony

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help