*BSD News Article 98017


Return to BSD News archive

From: john@NOSPAMinforef.com (John Marco - Remove `NOSPAM' to reply.)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Video: 24bpp/1280x1024 w/4MB RAM? (Diamond S64VVRAM)
Date: 18 Jun 1997 13:15:36 -0700
Organization: The Information Refinery, Inc.
Lines: 27
Message-ID: <85205zsm53.fsf@inforef.com>
X-No-Archive: yes
X-Newsreader: Gnus v5.4.56/Emacs 19.34
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!news.flex.com!www.nntp.primenet.com!nntp.primenet.com!hunter.premier.net!europa.clark.net!howland.erols.net!newshub2.home.com!newshub1.home.com!news.home.com!enews.sgi.com!zdc!super.zippo.com!szdc!newsp.zippo.com!no!spam
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43139


I should know better than this, but I've just upgraded my Diamond
Stealth 64 Video VRAM (S64VV) to 4MB VRAM.  In the manual for S64VV,
it says that you can get 24 bit color at 1280x1024 with 4MB.  The
XF86_S3 server does not allow this, though.

4MB = 4194304 bytes...
3 bytes X 1280 X 1024 = 3932160  (Fits if pixels are packed)
4 bytes X 1280 X 1024 = 5242880  (Does not fit for aligned pixels)

I'm guessing that the XF86_S3 server uses nice, fast, aligned, 32-bit
words in the frame buffer for each pixel, and that Diamond's claim is
probably based on a slower windoze driver that actually packs the
pixels into 24 bits per pixel, at the cost of a performance hit for
misaligned memory access.

My question is, is there a way to make the XF86_S3 driver pack the
pixels, take the performance hit, and give me 1280x1024x24?  (Without,
that is, rewriting the S3 driver ;)

Any hints/tips are greatly appreciated.

Thanks.

--
John Marco
john "@t" inforef "d0t" com  (Spammers should be caned to death in public!)