2009/8/12 Sun, Sunny Sunny.Sun@amd.com:
I think you can first detect GL_ATI_meminfo in glGetString(GL_EXTENSIONS); if GL_ATI_meminfo exists, then you can use glGetIntegerv(GL_VBO_FREE_MEMORY_ATI, param) to get the current free video memory, you can see more info at:
Is VBO_FREE_MEMORY_ATI the most appropriate value to query, or would TEXTURE_FREE_MEMORY_ATI make more sense?