/[gentoo]/xml/htdocs/doc/en/dri-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/dri-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.29 Revision 1.30
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/dri-howto.xml,v 1.29 2006/05/07 12:39:17 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/dri-howto.xml,v 1.30 2006/05/12 19:32:26 nightmorph Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/dri-howto.xml"> 5<guide link="/doc/en/dri-howto.xml">
6<title>Hardware 3D Acceleration Guide</title> 6<title>Hardware 3D Acceleration Guide</title>
7<author title="Author"> 7<author title="Author">
19<!-- The content of this document is licensed under the CC-BY-SA license --> 19<!-- The content of this document is licensed under the CC-BY-SA license -->
20<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 20<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
21<license/> 21<license/>
22 22
23<version>1.3</version> 23<version>1.3</version>
24<date>2006-05-07</date> 24<date>2006-05-12</date>
25 25
26<chapter> 26<chapter>
27<title>Introduction</title> 27<title>Introduction</title>
28<section> 28<section>
29<title>What is hardware 3D acceleration and why do I want it?</title> 29<title>What is hardware 3D acceleration and why do I want it?</title>
440<section> 440<section>
441<title>Get the most out of direct rendering</title> 441<title>Get the most out of direct rendering</title>
442<body> 442<body>
443 443
444<p> 444<p>
445A few options may increase performance by up to 30 percent (or more) over the 445A few options may increase performance by up to 30 percent (or more) over the
446default. Set them in <path>/etc/X11/xorg.conf</path>. 446default. Set them in <path>/etc/X11/xorg.conf</path>. However, you will first
447need to check that your motherboard and video card support these options.
448</p>
449
450<p>
451First, let's see if your video card can support fast writes. We'll do this by
452closely inspecting the output from <c>lspci</c>. Specifically, we are looking
453at the "VGA compatible controller" information.
454</p>
455
456<pre caption="Video card check">
457# <i>lspci -vv</i>
45801:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY (prog-if 00 [VGA])
459. . .
460Capabilities: [58] AGP version 2.0
461 Status: RQ=48 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
462</pre>
463
464<p>
465While quite a lot of information is produced, we are looking for <b>FW</b> in
466the "Status" subsection of the AGP "Capabilities" section. If <b>FW+</b> is
467present in the "Status" line, it means the card supports fast writes. We can
468now check if the motherboard supports fast writes.
469</p>
470
471<impo>
472If you do not see <b>FW+</b>, but instead see <b>FW-</b>, you cannot enable
473fast writes in <path>xorg.conf</path>. Your card does not support fast writes.
474</impo>
475
476<p>
477Now let's make sure the motherboard supports fast writes as well. This time,
478look at the "Host bridge" section of your <c>lspci</c> output.
479</p>
480
481<pre caption="Motherboard check">
482# <i>lspci -vv</i>
48300:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 02)
484. . .
485Capabilities: [a0] AGP version 2.0
486 Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
487</pre>
488
489<p>
490Again, examine the "Status" subsection of your AGP "Capabilities" section. Look
491for <b>FW</b>. If you see <b>FW+</b>, your motherboard supports fast writes.
492</p>
493
494<impo>
495Remember, both your video card information and your motherboard information
496must show the same <b>FW</b> capability. If either device shows <b>FW-</b> in
497"Status", you cannot enable fast writes in <path>xorg.conf</path>.
498</impo>
499
500<p>
501Assuming that all has gone well and both your motherboard and video card
502support fast writes, let's enable this option in
503<path>/etc/X11/xorg.conf</path> and get the best performance out of your
504hardware.
447</p> 505</p>
448 506
449<pre caption="xorg.conf"> 507<pre caption="xorg.conf">
450Section "Device" 508Section "Device"
451 Option "AGPMode" "4" 509 Option "AGPMode" "4"
468<note> 526<note>
469Remember, if you want fast writes to work properly, you will have to first 527Remember, if you want fast writes to work properly, you will have to first
470enable the appropriate option in your BIOS. 528enable the appropriate option in your BIOS.
471</note> 529</note>
472 530
473<!--
474**
475This section needs to be in eventually, but non-nvidia cards don't use
476/proc/driver at all. We need some way to get users to check and see that SBA
477and fast-writes are allowed for their hardware; that info is somewhere else in
478/proc. If you have a non-nvidia card, you can help by emailing
479nightmorph@gentoo.org with the relevant bits of your /proc so I can get this
480info into the guide. See below for where things are found on an nvidia card.
481**
482
483<p>
484A few options may increase performance by up to 30 percent (or more) over the
485default. Set them in <path>/etc/X11/xorg.conf</path>. However, you will first
486need to check that your motherboard and video card support these options.
487</p>
488
489<p>
490First, let's check the supported modes of your video cards, and see if your it
491supports fast writes. Remember to replace <c>nvidia</c> with the actual name of
492your device in <path>/proc/driver/nvidia/</path>.
493</p>
494
495<pre caption="Video card check">
496$ <i>cat /proc/driver/nvidia/agp/card</i>
497</pre>
498
499<p>
500Next, let's check out the capabilities of the motherboard:
501</p>
502
503<pre caption="Motherboard check">
504$ <i>cat /proc/driver/nvidia/agp/host-bridge</i>
505</pre>
506
507<impo>
508Remember, the modes and capabilities for your video card and motherboard must
509match for these settings to work!
510</impo>
511-->
512
513<p> 531<p>
514If you want to set even more features, check out the <uri 532If you want to set even more features, check out the <uri
515link="http://dri.freedesktop.org/wiki/FeatureMatrix">feature matrix</uri> on 533link="http://dri.freedesktop.org/wiki/FeatureMatrix">feature matrix</uri> on
516the DRI web site or the <uri 534the DRI web site or the <uri
517link="http://dri.sourceforge.net/doc/dri_driver_features.phtml">features 535link="http://dri.sourceforge.net/doc/dri_driver_features.phtml">features

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20