Xorg/Hardware 3D acceleration guide/ko

이 문서는 젠투 리눅스에서 Xorg와 DRM을 사용하여 3D 가속을 동작하게 하도록 하는 과정을 안내합니다.

하드웨어 3D 가속은 무엇이며 왜 필요한가요?
��������������

하드웨어 3D 가속을 할때 3D �표현은 3D 이미지를 표현하는데 값진 CPU 자원을 다루는 대신 비디오 카드의 그래픽 프로세서를 사용합니다. 하드웨어 3D 가속을 하지 않으면 CPU는, 좀 더 많은 프로세싱 성능을 수반하는 Mesa 소프트웨어 렌더링 라이브러리를 사용하여 모든 3D 영상을 그리도록 강제하므로 "소프트웨어 가속" 대신 "하드웨어 가속"으로 많이 참조합니다. Xorg가 보통 2D 하드웨어 가속을 지원하는데 반해 하드웨어 3D 가속에 대해 종종 무언가가 빠져있습니다. 3D 하드웨어 가속은 게임이나 3D 캐드, 모델링과 같은 3D 객체를 표현할 필요가 있는 상황에서 빛을 발합니다.

어떻게 하드웨어 3D 가속 기능을 동작시키죠?
In many cases, both binary and open-source drivers exist. Open source drivers are preferable since we're using Linux and open source is one of its underlying principles. Sometimes, binary drivers are the only option, especially if your graphics card is so new that open source drivers have not yet been written to support its features. Binary drivers include for nVidia cards and  for AMD/ATI cards.

What is DRI?
The Direct Rendering Infrastructure, also known as the DRI, is a framework for allowing direct access to graphics hardware in a safe and efficient manner. It includes changes to the X server, to several client libraries and to the kernel. The first major use for the DRI is to create fast OpenGL implementations.

What is the DRM and how does it relate to regular Xorg?
The DRM (Direct Rendering Manager) is an enhancement to Xorg that adds 3D acceleration for cards by adding the kernel module necessary for direct rendering.

Purpose
This guide is for people who can't get direct rendering working with just Xorg. The DRM works for the following drivers:


 * 3dfx
 * intel
 * matrox
 * nouveau
 * rage128
 * radeon
 * mach64
 * sis300
 * via

See the DRI homepage for more info and documentation.

Install Xorg
Please read our Xorg Configuration Guide to get Xorg up and running.

Configure your kernel
Probe for your chipset and enable just that one.

Your output may not match the above due to different hardware.

If your chipset is not supported by the kernel you might have some success by passing  as a kernel parameter. This will use Intel's generic routines for AGP support. To add this parameter, edit your bootloader configuration file!

Most, if not all, kernels should have these options. This was configured using a standard kernel.

Make sure /usr/src/linux links to your current kernel.

Compile and install your kernel
Don't forget to set up or  and run   if you use LILO.

Add your user to the video group
Next, add your user(s) to the video group, as explained in the handbook:

Configure Xorg
Hopefully just adding your user to the  group is sufficient to enable direct rendering. However, you may also need to create a file in. You can name it anything you like; just make sure it ends in. Open up your favorite text editor and create a file with this inside it:

Replace radeon with the name of your driver.

Changes to /etc/conf.d/modules
You will need to add the module name that your card uses to to ensure that the module is loaded automatically when the system starts up.

Reboot to the new kernel
Reboot your computer to your new kernel and login as a normal user. It's time to see if you have direct rendering and how good it is. and  are part of the  package, so make sure it is installed before you attempt to run these commands.

No need to load modules for your driver or agpgart, even if you compiled them as a module. They will be loaded automatically.

If it says "No", you don't have 3D acceleration.

Test your frames per second (FPS) at the default size. The number should be significantly higher than before configuring DRM. Do this while the CPU is as idle as possible.

Get the most out of direct rendering
If you want to set more features, for performance or other reasons, check out the feature matrix on the DRI web site or the features listing on Sourceforge.

It doesn't work. I don't have rendering, and I can't tell why.
Try  before you start the X server (replace   with the name of your driver). Also, try building agpgart into the kernel instead of as a module.

When I startx, I get this error: "[drm] failed to load kernel module agpgart"
That's because you compiled agpgart into the kernel instead of as a module. Ignore it unless you're having problems.

I have a Radeon, and I want TV-Out.
The drivers originally developed by the GATOS project have been merged into Xorg's codebase. You don't need anything special for TV-Out; will work just fine.

It doesn't work. My card is so incredibly new and cool that it isn't supported at all.
Try out the binary drivers. For AMD cards, use ; a listing is at http://support.amd.com/us/gpudownload/Pages/index.aspx. If those don't support it, use fbdev. It's slow, but it works.

I have a PCI card and it doesn't work. Help!
Create a config file in ; name it anything you want as long as it ends in. Add the following to it:

Acknowledgements
We would like to thank the following authors and editors for their contributions to this guide:


 * dberkholz
 * peesh
 * nightmorph