glAreTexturesResident

I render 100 polygons.
A DXT5 2048x1024 mipmapped texture (~3 Mbytes) is mapped on each polygon. The texture is different for each polygon.

My video card has 256 Mb video memory.

glAreTexturesResidency always returns GL_TRUE.
Why ?!!!

Any help appreciated

WinXP SP1 - Nvidia 5950 Ultra - ForceWare 77.77

A DXT5 2048x1024 mipmapped texture (~3 Mbytes)
That’s only 2MB. Not 3. DXT5 textures are 1-byte per pixel in size.

Yes, but my textures are mipmapped.
2048x1024x4/3 = 2.7 Mbytes

100 of them + RGB double Z frame buffer > 256 Mb

Did you try reducing AGP aperture size ? With even more textures ?

I will try with even more textures tomorrow and will let you know.

Are you saying a texture is considered resident if it is stored in video or AGP memory ?

Are you saying a texture is considered resident if it is stored in video or AGP memory ?
It’s up to the driver what it considers “resident”. It could be a perfectly correct implementation that calls all textures resident. What ATi cards and nVidia cards consider this concept can easily be two different things.

i have done another test with even more textures and now the performance really drops and glAreTexturesResident notifies texture swapping.

so the API seems to work.