[Glamor] [PATCH] Fix the problem of memory leak in gradient pixmap generating.
Chris Wilson
chris at chris-wilson.co.uk
Mon Apr 16 02:46:53 PDT 2012
On Mon, 16 Apr 2012 09:26:45 +0800, junyan.he at linux.intel.com wrote:
> From: Junyan He <junyan.he at linux.intel.com>
>
> Fix the problem of memory leak in gradient pixmap
> generating. The problem caused by we do not call
> glDeleteShader when destroy a shader program. This patch
> will split the gradient pixmap generating to three
> category. If nstops < 6, we will use the no array version
> of the shader, which has the best performance. Else if
> nstops < 16, we use array version of the shader, which is
> compiled and linked at screen init stage. Else if nstops >
> 16, we dynamically create a new shader program, and this
> program will be cached until bigger nstops.
And also workarounds a bug in mesa/i965, fyi.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Glamor
mailing list