[Mesa-dev] [PATCH 3/3] mesa: fix issues with glTexStorage() and proxy textures

Brian Paul brianp at vmware.com
Thu Jul 14 21:58:12 UTC 2016


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



More information about the mesa-dev mailing list