On 07/13/2016 03:57 PM, Brian Paul wrote:
When we call ctx->Driver.TestProxyTexImage() we want to have the
texture object's Immutable and NumLevels fields initialized so that
the function doesn't have to guess about the number of mipmap levels.

But since the proxy textures are shared by the old glTexImage() and
new glTexStorage(), we can't just set these fields and forget them.
We have to save/restore them.

This allows glTexStorage(GL_PROXY_TEXTURE_x) calls to produce a more
accurate result.

An alternative would be to change the ctx->Driver.TestProxyTexImage()
function to take extra immutable, numLevels arguments.

Actually, I'm going to do that instead. Driver.TestProxyTexImage() also needs to be updated to handle multisample. New patches coming later/tomorrow...

-Brian

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to