intel gfx driver --- AGPGART

AGP-GART

AGP的工作方式
    AGP
有两种工作方式:一个是DMA(直接存储器存取),一个是DIME(直接内存执行)。
AGP
技术中的DMA是利用高速的AGP来提高数据传输率,不使用PC机的内存作为显存的扩展,全部的图形运算还是在显存内部完成,这实际上不是真正意义上的AGP。如图:texture Data :  disk à main mem (cpu may process texture ) à DMA (AGP) à GPU framebuffer (GPU process) à display

 

 

DIME方式,当显存容量不够时,将内存当作显存来用,把纹理贴图,Z轴缓冲区,ALPHA混合...耗费显存的3D操作全部放在内存中完成。也就是说由GPU直接寻址存放在mem中的texture, 并完成相应的处理

GART的作用

GartGraphics Address Remapping Table,图形地址再映射表),北桥的一个部件,将分散在非连续地址的数据,组织成连续的数据流交给GPU处理。我们可以把它看作是GPU TBL.如图所示,对于GPU来说,所看到的就是连续的地址block0—block4. 实际上对应的物理地址是不连续的,这就是gart的作用。

 

So called AGP memory is just dynamically-allocated areas of system memory, which the graphics controller can access quickly. The access speed comes from built-in hardware in the 440LX chipset which translates addresses, allowing the graphics controller and its software to see a contiguous space in main memory, when in fact the pages are disjointed. Thus the graphics controller can access large data structures like texture bitmaps (typically 1 KByte to 128 KByte) as a single entity. The built-in chipset hardware is called the GART (Graphics Address Remapping Table), similar in function to the paging hardware in the CPU.

The processor "linear" virtual addresses are translated by its paging hardware into physical addresses. These physical addresses are used to access system memory, the local frame buffer, and AGP memory. The CPU accesses to the local frame buffer and AGP memory use the same addresses as the graphics controller does. The operating system therefore sets up the CPU paging hardware to a straight 1:1 non-translation of virtual to physical address. For accesses to AGP memory, the graphics controller and CPU use a contiguous aperture of several megabytes. But the GART translates these to various, possibly disjointed, 4 KByte page addresses in system memory. PCI devices that access to the AGP memory aperture (for example, for live video capture) also go through the GART.

AGP Aperture – GPU可寻址的系统Memory空间

“AGP总线可访问的内存总量由系统BIOSAGP Aperture一项的设置所控制。在BIOS中,AGP ApertureMB数设,这一设置值就是AGP总线可寻址的大小。假设你有128MB系统内存,一块32MB显示卡,而AGP Aperture设为64MB。则AGP总线可以用到64MB内存。第一个32MB内存映射为显示卡上的32MB显存;Aperture的剩余数值(第二个32MB)影射为32MB系统RAM。这并不是说你有128MB系统内存,现在只剩下96MB了:AGP总线只会在需要时才会使用系统内存,也就是当一个应用程序需要存储纹理信息而显卡的32MB显存又不够用时。

 

要区别于集成显卡的显存调节,集成显卡占用的显存地址空间是boot时静态划出的一块stolen memory, 也就是说不能被系统访问的。例如256内存,划出了32M给集成显卡当显存,那OS能用的只有224了。而AGP这项不影响系统的内存,例如256内存,AGP APERTURE SIZE这项设了128,那OS能用的仍然256,而不是128

 

总结一下AGP的主要优点:
更高的速度得益于流水线、“边带”地址以及在时钟的上升沿和下降沿都进行数据传送等技术,AGP的带宽峰值比PCI总线高4倍。
内存中的纹理图直接操作AGP能够使图形控制器直接高速存取内存纹理数据,这比将纹理数据预取到局部视频存储器中的方法要好得多。
数据拥挤程度低于PCI总线PCI总线上挂接了多种I/O设备,比如磁盘控制器,局域网络芯片以及视频捕捉系统。AGP能够独立于PCI并与其并行操作。更进一步,CPU能够在图形控制器存取AGP存储器的同时存取内存数据。
改善了PC性能的平衡性当图形芯片在处理内存中的纹理数据的时候,处理器可以处理其他的事务

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值