From owner-freebsd-hackers Mon May 17 12:51:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (Postfix) with ESMTP id CF4841521C for ; Mon, 17 May 1999 12:46:23 -0700 (PDT) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:4TsaIQb3K8QSTjeP/0+8pjcfT4ex44yP@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.3/3.7Wpl2) with ESMTP id EAA15748; Tue, 18 May 1999 04:13:57 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id EAA04418; Tue, 18 May 1999 04:17:48 +0900 (JST) Message-Id: <199905171917.EAA04418@zodiac.mech.utsunomiya-u.ac.jp> To: Dag-Erling Smorgrav Cc: Kelly Yancey , freebsd-hackers@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: modex support (again) In-reply-to: Your message of "17 May 1999 20:55:40 +0200." References: <199905171637.BAA01434@zodiac.mech.utsunomiya-u.ac.jp> Date: Tue, 18 May 1999 04:17:47 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> In that sense, the support for 320x240 mode-X is minimal too. The >> driver can set up this mode, but has no knowledge or code to write to >> it. It is entirely up to the userland program to update the video >> buffer. (And it is true that there is very little use to this mode at >> the moment as we haven't seen anybody using it...) > >I believe the video_info_t etc. structures aren't able to accurately >describe how to address mode X. That's correct for the current code. But, we can always extend it if at all necessary. >The graphics code in the graphical >screen savers and the splash screen decoders is written in such a way >that it does not care if the current mode is linear or windowed (a >linear frame buffer is a windowed frame buffer with a window size >large enough to hold the entire screen). Extending this code to work >with mode X is not trivial; you either have to write a separate >drawing function for mode X, or put so much magic in your drawing >function that it will bog down to something like 3 fps. And I am not asking you to do so :-) Splash screen decoders, screen savers, or any other graphics programs may choose whichever video mode they like to support. If they don't want the complexity of the mode X, they don't need to support it. >And you can't >just look at your video_info_t and see that mode X is interlaced; you >have to *know* that you're running in mode X and that mode X is >interlaced. Well, how about this. If we are to add a way to describe the frame buffer organization, then graphics programs can identify interlaced video mode X among available video modes. As it is the program which will request the video mode change, the programs that don't like interlaced modes can decide to ignore those modes and use other, simpler video modes. Noboby is forcing you to use the interlaced modes... Anyway, I am not adovocating all those wacky mode X. I am perfectly happy if everybody can agree in dropping these modes. Kazu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message