|
NAMEaccel - tests the new style svgalib accelerator interfaceSYNOPSISaccelDESCRIPTIONTest new-style accelerated functions (As of this writing: Ark, Cirrus, Chips & Technologies cards, and Mach32 only). For other cards the demo will not work (well it will complain about missing accelerator support). Don't worry about this.During the development of the Mach32 new style driver for 1.2.12, this demo was massively extended to check the Mach32 functions. Upon startup it lists all supported SVGA modes and asks you to enter a number identifying the mode to be tested. The supported subfunctions of vga_accel(3) in this mode are listed and the demo instructs to press <Return> to start the demos. If supported, all drawing operations are performed in the background. Then the following tests are performed: Positioning testsThese tests were originally intended to check that the accelerator commands work on the proper screen locations. The screen shows 12 (4 x 3) smaller areas with red crosses in the corners. When everything is ok, the drawings should reach right in the corners of the crosses.A given card may not support all operations listed here. In that case the resp. test area just shows the red crosses. For tests performed, the name of the test is printed below the area. The tests are (from left to right, top to bottom):
After this screen, you'll have to hit <Return> to continue. Raster operationsAgain, red cross bordered areas are drawn on the screen, this time for each of the supported raster operations. For ROP_AND and ROP_XOR the areas are filled in white first.Three overlapping boxes A, B, C are drawn such that you see the following areas. AAAAAAddddBBBBBB
The pictures should show:
If the accelerator supports raster operations for ACCEL_DRAWHLINELIST actually disks (well, ellipses) are drawn instead of boxes. After this screen, you'll have to hit <Return> to continue. Replace QuixDemoIf ACCEL_DRAWLINE is supported, a Quix like bouncing series of lines in varying colors is drawn. The lines are removed from the screen by overdrawing them in black, thus erasing the dots and text on the background.The test lasts about 5 seconds and some statistics are printed to stdout. XOR Mode QuixDemoAs before, but this time all lines are drawn in ROP_XOR mode (if ACCEL_DRAWLINE supports raster operations). Thus the background will not be destroyed this time.The test lasts about 5 seconds and some statistics are printed to stdout. FillBox DemoThe screen is ACCEL_FILLBOX filled with a series of boxes of increasing colors. In truei/high color modes you'll probably only see a series of varying blue tones (because these are at the beginning of the color table and there are soo many of them).The test lasts about 5 seconds and some statistics are printed to stdout. ScreenCopy DemoSome random dots are drawn on the screen and thirds of the screen contents are moved around using ACCEL_SCREENCOPY.The test lasts about 5 seconds and some statistics are printed to stdout. Scroll DemoSome random dots are drawn on the screen and moved one line up with ACCEL_SCREENCOPY. In offscreen memory a new line is prepared which will be cleared by ACCEL_FILLBOXandmoveinfrombelow.Thistestrequiressomeoffscreenandwillnot be performed if video memory is very tight.The test lasts about 5 seconds and some statistics are printed to stdout. FillBox with DrawHLineList DemoLike the FillBox test, but no box fill is done but the screen is filled with a list of horizontal lines drawn with ACCEL_DRAWHLINELIST.The test lasts about 5 seconds and some statistics are printed to stdout. FillBox XOR Mode DemoLike the FillBox test, but the XOR raster operation is used.The test lasts about 5 seconds and some statistics are printed to stdout. PutBitmap DemoThe screen is filled with bitmasks consisting of tiny vertical lines alternating in red and blue.The test lasts about 5 seconds and some statistics are printed to stdout. SOME DATAPOINTSHere is a list of speed listings for some cards. Please keep in mind that also the calling overhead for the program is measured. This seems to be esp. true for the QuixDemo.Results on a Cirrus GD5434-E with 2Mb:
On a Cirrus Logic 5426 VLB (50 MHz MCLK):
Tweaked to 60 MHz MCLK:
Results on a Mach32 EISA with 2Mb VRAM:
You're encouraged to send in more data. This demo is part of svgalib and can be found in the demos/ subdirectory of the original svgalib distribution. However, it is not installed in the system by default, s.t. it is unclear where you can find it if your svgalib was installed by some linux distribution. Even then, when you have the demo on your system, you probably won't have the sources s.t. it is only of limited use for you. In case of any such problem, simply get an svgalib distribution from the net. You even don't need to install it. Just make in the demos/ subdirecty. As of this writing, svgalib-1.2.12.tar.gz is the latest version and can be retrieved by ftp from sunsite.unc.edu at /pub/Linux/libs/graphics and tsx-11.mit.edu at /pub/linux/sources/libs which will most probably be mirrored by a site close to you. SEE ALSOsvgalib(7), vgagl(7), libvga.config(5), vga_accel(3), threed(6), bg_test(6), eventtest(6), forktest(6), fun(6), keytest(6), mousetest(6), scrolltest(6), speedtest(6), spin(6), testaccel(6), testgl(6), testlinear(6), vgatest(6), plane(6), wrapdemo(6)AUTHORThis manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The demo and most of its documentation is due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>.
Visit the GSP FreeBSD Man Page Interface. |