游戏开发论坛

 找回密码
 立即注册
搜索
12
返回列表 发新帖
楼主: DancingWind

求助 AGP buffer

[复制链接]

21

主题

230

帖子

230

积分

中级会员

Rank: 3Rank: 3

积分
230
发表于 2006-12-15 22:41:00 | 显示全部楼层

Re:求助 AGP buffer

AGP对CPU访问显存也有加速么?那些高速度都是从内存到显存的速度,按照道理从显存到内存也要快啊

8

主题

553

帖子

560

积分

高级会员

Rank: 4

积分
560
发表于 2006-12-16 13:18:00 | 显示全部楼层

Re:求助 AGP buffer

lanlan: Re:求助 AGP buffer

回答的专业,正确。看了你的回答,然后google了一下才解决了这个疑问。以前有疑问。
CPU和GPU都是通过相同...

你理解还是有错,
"CPU和GPU都是通过相同的地址来访问显存和AGP MEMORY的"
- 完全错误,两个地址是完全不同的体系。
“CPU,显卡访问AGP MEMORY,都是GART映射过了的。”
- CPU不需要通过GART,GART是吧system memory上物理地址不连续的快(当然也可以是连续的)映射为连续的GPU地址。
“这些内存地址映射的是就是一对一的物理内存地址。就是虚拟的地址和实际地址是一样的。”
虚地址,可以是不同的虚地址映射到相同的物理地址——看PTE里怎么填的。
“CPU访问AGP没有用到CACHE”
这个不是硬件限制,是为了保证GPU/CPU的数据同步,当然CPU些agp memory有write combine机制。

可以说,你的理解基本全错。

8

主题

553

帖子

560

积分

高级会员

Rank: 4

积分
560
发表于 2006-12-16 13:19:00 | 显示全部楼层

Re: Re:求助 AGP buffer

lanlan: Re:求助 AGP buffer

AGP对CPU访问显存也有加速么?那些高速度都是从内存到显存的速度,按照道理从显存到内存也要快啊

按照"道理"?什么道理,你YY的道理?

21

主题

230

帖子

230

积分

中级会员

Rank: 3Rank: 3

积分
230
发表于 2006-12-16 15:01:00 | 显示全部楼层

Re:求助 AGP buffer

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.

8

主题

553

帖子

560

积分

高级会员

Rank: 4

积分
560
发表于 2006-12-17 15:58:00 | 显示全部楼层

Re:求助 AGP buffer

还是没有明白你说的道理在哪里

21

主题

230

帖子

230

积分

中级会员

Rank: 3Rank: 3

积分
230
发表于 2006-12-17 22:27:00 | 显示全部楼层

Re:求助 AGP buffer


”"CPU和GPU都是通过相同的地址来访问显存和AGP MEMORY的"
- 完全错误,两个地址是完全不同的体系。
那么这个怎么说呢?
The CPU accesses to the local frame buffer and AGP memory use the same addresses as the graphics controller does
“CPU,显卡访问AGP MEMORY,都是GART映射过了的。”
- CPU不需要通过GART,GART是吧system memory上物理地址不连续的快(当然也可以是连续的)映射为连续的GPU地址。
这个怎么说呢
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.


“这些内存地址映射的是就是一对一的物理内存地址。就是虚拟的地址和实际地址是一样的。”
虚地址,可以是不同的虚地址映射到相同的物理地址——看PTE里怎么填的。

The operating system therefore sets up the CPU paging hardware to a straight 1:1 non-translation of virtual to physical address.
这个不是说一对一了么?

你怎么就断定我的错了呢?

21

主题

230

帖子

230

积分

中级会员

Rank: 3Rank: 3

积分
230
发表于 2006-12-17 22:31:00 | 显示全部楼层

Re:求助 AGP buffer

AGP对CPU访问显存也有加速么?那些高速度都是从内存到显存的速度,按照道理从显存到内存也要快啊
我只是问一个问题。好不好。我并没说快。的确是YY。按照道理就是说按我的主观想法。我只是问 AGP对CPU访问显存也有加速么?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-26 01:59

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表