projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec1f159
)
util: fix memory leak from the fragment shaders for SINT<->UINT blits
author
Charmaine Lee
<charmainel@vmware.com>
Thu, 24 Nov 2016 06:53:08 +0000
(22:53 -0800)
committer
Charmaine Lee
<charmainel@vmware.com>
Thu, 24 Nov 2016 06:53:08 +0000
(22:53 -0800)
This patch deletes those fragment shaders in util_blitter_destroy().
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_blitter.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_blitter.c
b/src/gallium/auxiliary/util/u_blitter.c
index 98b54213c096d097d5d81ec5e5015eafdc37e778..45dc0338f97135ddebc36ee6cd86946c807fd421 100644
(file)
--- a/
src/gallium/auxiliary/util/u_blitter.c
+++ b/
src/gallium/auxiliary/util/u_blitter.c
@@
-453,7
+453,7
@@
void util_blitter_destroy(struct blitter_context *blitter)
}
for (i = 0; i < PIPE_MAX_TEXTURE_TYPES; i++) {
- for (unsigned type = 0; type <
3
; ++type) {
+ for (unsigned type = 0; type <
ARRAY_SIZE(ctx->fs_texfetch_col)
; ++type) {
if (ctx->fs_texfetch_col[type][i])
ctx->delete_fs_state(pipe, ctx->fs_texfetch_col[type][i]);
if (ctx->fs_texfetch_col_msaa[type][i])