I have never seen "All Textures in Use, Cannot Evict Texture" error before. Could you point me what d3d error it corresponds directly?
To isolate the problem, could you try following tests and let me know your results please?
1> please remove D3DUSAGE_AUTOGENMIPMAP and run your code again, do you still get the same error?
2> what is size of your video memory? and how may times "a texture is set in a texture stage and then drawprimitive is called" is done?
3> please try reduce the texture size into 1/2 and run your code again. does the times you run "a texture is set in a texture stage and then drawprimitive is called" double?
4> if you can reproduce this problem consistently, could you post a simple repro code here to let me try?
Thanks very much for your patience,
Rhett Gong [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.