mesa: handle numLevels, numSamples in _mesa_test_proxy_teximage()
authorBrian Paul <brianp@vmware.com>
Thu, 14 Jul 2016 21:50:18 +0000 (15:50 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Jul 2016 20:24:34 +0000 (14:24 -0600)
commit9a23a177b90ea60ba45b8b5090b832c87d595346
treea0207872881931ca186401e0e0eea833acddeaab
parent39183ea971a9fd3fc001b5a5a43df1c890525681
mesa: handle numLevels, numSamples in _mesa_test_proxy_teximage()

If numSamples > 0, we can compute the size of the whole mipmapped texture.
That's the case for glTexStorage(GL_PROXY_TEXTURE_x).

Also, multiply the texture size by numSamples for MSAA textures.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/teximage.c