Re: [Mesa-dev] [PATCH] i965: Save meta blit programs in the context.

2014-06-20 Thread Ian Romanick
On 06/19/2014 12:02 AM, Kenneth Graunke wrote: > When the last context in a share group is destroyed, the hash table > containing all of the shader programs (ctx->Shared->ShaderObjects) is > destroyed, throwing away all of the shader programs. > > Using a static variable to store program IDs ends

Re: [Mesa-dev] [PATCH] i965: Save meta blit programs in the context.

2014-06-19 Thread Eric Anholt
Kenneth Graunke writes: > When the last context in a share group is destroyed, the hash table > containing all of the shader programs (ctx->Shared->ShaderObjects) is > destroyed, throwing away all of the shader programs. Reviewed-by: Eric Anholt pgpBNgFcIH1rb.pgp Description: PGP signature __

[Mesa-dev] [PATCH] i965: Save meta blit programs in the context.

2014-06-19 Thread Kenneth Graunke
When the last context in a share group is destroyed, the hash table containing all of the shader programs (ctx->Shared->ShaderObjects) is destroyed, throwing away all of the shader programs. Using a static variable to store program IDs ends up holding on to them after this, so we think we still ha