projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c57caa
)
vega: move ureg_destroy(ureg) after last use of ureg var
author
Brian Paul
<brianp@vmware.com>
Fri, 15 Apr 2011 14:31:10 +0000
(08:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 15 Apr 2011 14:33:20 +0000
(08:33 -0600)
src/gallium/state_trackers/vega/shaders_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vega/shaders_cache.c
b/src/gallium/state_trackers/vega/shaders_cache.c
index 023996ce2d8c848ea84dc265b6e5ec5826ec2776..70d860ddc8eaa21bfcff2d34ef9cec41dad3fb05 100644
(file)
--- a/
src/gallium/state_trackers/vega/shaders_cache.c
+++ b/
src/gallium/state_trackers/vega/shaders_cache.c
@@
-229,7
+229,6
@@
combine_shaders(const struct shader_asm_info *shaders[SHADER_STAGES], int num_sh
return NULL;
p = pipe->create_fs_state(pipe, shader);
- ureg_destroy(ureg);
if (num_temps >= 1) {
for (i = start_temp; i < end_temp; i++) {
@@
-237,6
+236,8
@@
combine_shaders(const struct shader_asm_info *shaders[SHADER_STAGES], int num_sh
}
}
+ ureg_destroy(ureg);
+
if (temp)
free(temp);
if (constant)