I'm looking to enhance the parser in XFree86 so that a lot of redundant
code in the current drivers that implement the 'mergedfb' mode can
be eliminated such that they don't have to do all the monitor munging
in the driver.

So here's two variants of the modifications to the XF86Config I'm
thinking of, and both would remove the current 'Monitor' keyword from
the Screen Section, in favour of the SubSection keyword being the actual
monitor it's referencing.

I've already started poking around the parser to implement this, but
I thought I'd ask for comments first before taking it too far, and
to ask for possible enhancements that others can think of too.

Option 1....

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Monitor0"
                SubSection "Display"
                        Depth     16
                        Modes    "1024x768" "800x600" "640x480"
                EndSubSection
                SubSection "Display"
                        Depth     24
                        Modes    "1024x768" "800x600" "640x480"
                EndSubSection
        EndSubSection
        SubSection "Monitor1"
                SubSection "Display"
                        Depth     16
                        Modes    "1024x768" "800x600" "640x480"
                EndSubSection
                SubSection "Display"
                        Depth     24
                        Modes    "1024x768" "800x600" "640x480"
                EndSubSection
        EndSubSection
EndSection

Or, Option 2.

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Monitor0"
                Depth     16
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Monitor0"
                Depth     24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Monitor1"
                Depth     24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection


Comments ?

Alan.
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to