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

AuthorMessageTime
Mad_DadDHow 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 24, 2006, 08:45 pm
Joe[x86]
Also, how do I apply a 64 bit entry into a memory location?

Put the first four bytes in a 32bit location as usual. The second set of four bytes should be << 4'd and put into the location 32bit's to the right.
November 26, 2006, 05:10 am
MyndFyre
Also, how do I apply a 64 bit entry into a memory location?

Put the first four bytes in a 32bit location as usual. The second set of four bytes should be << 4'd and put into the location 32bit's to the right.
I'm pretty sure a bitwise shift of four will not produce the desired result.
November 26, 2006, 03:21 pm
TheMinisteredThe 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, 04:27 pm
brew
How do I obtain the memory map for the GeForce Nvidia 7600 GT SLI Delux?

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 21, 2010, 08:08 pm