OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230f6e7
)
i965: Fix refcount leak of the gl_program structure.
author
Eric Anholt
<eric@anholt.net>
Thu, 12 Jan 2012 20:55:06 +0000
(12:55 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 24 Jan 2012 23:39:46 +0000
(15:39 -0800)
Fixes a leak of almost 200kb on a minimal shader_runner program
(algebraic-add-add-1).
NOTE: This is a candidate for the 8.0 branch.
(cherry picked from commit
b2be4869624443cd9769bd696b11dd587494b62a
)
src/mesa/drivers/dri/i965/brw_shader.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_shader.cpp
b/src/mesa/drivers/dri/i965/brw_shader.cpp
index
ef0f09d
..
aa1bfdb
100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_shader.cpp
@@
-229,6
+229,8
@@
brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
* program constant) has to happen before creating this linkage.
*/
_mesa_associate_uniform_storage(ctx, shProg, prog->Parameters);
+
+ _mesa_reference_program(ctx, &prog, NULL);
}
if (!brw_shader_precompile(ctx, shProg))