Valhalla Legends Forums Archive | Advanced Programming | GPU Memory Map?

AuthorMessageTime
Mad_DadD
How do I obtain the memory map for the GeForce Nvidia 7600 GT SLI Delux?

Also, how do I apply a 64 bit entry into a memory location?
November 25, 2006, 2:45 AM
JoeTheOdd
[quote author=Mad_DadD link=topic=16075.msg161744#msg161744 date=1164422721]
Also, how do I apply a 64 bit entry into a memory location?
[/quote]

Put the first four bytes in a 32bit location as usual. The second set of four bytes should be [tt]<< 4[/tt]'d and put into the location 32bit's to the right.
November 26, 2006, 11:10 AM
Myndfyr
[quote author=Joe[x86] link=topic=16075.msg161813#msg161813 date=1164539424]
[quote author=Mad_DadD link=topic=16075.msg161744#msg161744 date=1164422721]
Also, how do I apply a 64 bit entry into a memory location?
[/quote]

Put the first four bytes in a 32bit location as usual. The second set of four bytes should be [tt]<< 4[/tt]'d and put into the location 32bit's to the right.
[/quote]
I'm pretty sure a bitwise shift of four will not produce the desired result.
November 26, 2006, 9:21 PM
TheMinistered
The GPU probably has a set of instructions for dealing with 64bit operations.  You should read the manual for the GPU.  Its basically a processor, just like the FPU and CPU.  The FPU has its own set of instructions, etc fldz being one (load zero on stack).  So does the GPU.
December 30, 2006, 10:27 PM
BreW
[quote author=Mad_DadD link=topic=16075.msg161744#msg161744 date=1164422721]
How do I obtain the memory map for the GeForce Nvidia 7600 GT SLI Delux?
[/quote]

You could either read the ACPI MCFG table (preferred) or reading from ports 0xCF8 and 0xCFC as described here (ugly) to get your card's configuration space. This is even simpler with Microsoft Windows 2000 and later; send an IRP_MJ_PNP packet to the PCI bus driver. Check out this link for an example.
From there, you should be able to determine the base addresses of all regions of your card, provided you have sufficient documentation. Since you're asking about nVidia, your best bet would be figure out the structure via RCEing the driver for your card.
March 22, 2010, 1:08 AM

Search