View Full Version : Using wglAllocateMemoryNV

08-16-2000, 11:46 PM
Please help me - it seems that wglAllocateMemoryNV works in a strage way
... it an allocate only one block of AGP
memeory or 4 blocks of video memory ... any subsequent allocations fail.
for agp memory I use wglAllocateMemoryNV ( 16384, 0, 0, 0.5f );
for video memory I use wglAllocateMemoryNV ( 16384, 0, 0, 1 );
the size does not matter - it easily allocates 8 Mb block in AGP memory, but
it cannot allocate two of them if they are 4096;

Using GeForce 256 DDR ( Asus V6800 ) with 32Mb ram, nvidia reference bios with sideband addressing fix
and nvidia reference drivers v 6.18.

Also, it seems that video memory is a ligned on size of 4608 ... it is equal
to 4096 + 512 ... Just interested why such granularity ( not page ) ?

08-17-2000, 02:37 AM

I'll get a response posted on this ASAP. Checking with the driver group...


08-17-2000, 05:45 AM
Oh goody! I've been wondering about this too. Can't wait for your response cass!

08-18-2000, 06:36 AM
As it turns out, the answer may not be all that helpful. http://www.opengl.org/discussion_boards/ubb/frown.gif

There are a number of OS and chipset issues that muddy the waters here. The short answer is that if you want to write well-supported VAR code, you should allocate only one large chunk (per memory type). Your request is more likely to succeed if you make it before allocating (specifying) textures.

Hope this helps...

08-19-2000, 04:53 AM
I knew it http://www.opengl.org/discussion_boards/ubb/smile.gif
At least, I was thinking on creating geometry memory manager - it keeps clear that it is required.

Thanks for help, cass http://www.opengl.org/discussion_boards/ubb/smile.gif

Last question - besides the spec - is there a way to get amount of available AGP and video memory, suitable for wglAllocateMemoryNV ? Seems there it is not, but just wanna be sure http://www.opengl.org/discussion_boards/ubb/wink.gif

08-22-2000, 07:16 AM

Not any really sure-fire way, sorry.