diff options
author | Brian Paul <[email protected]> | 2011-04-15 08:31:10 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-04-15 08:33:20 -0600 |
commit | 1b800c10e4aa3a9792e221043c54bbc930b50829 (patch) | |
tree | 4c715797b90f8bd2e5d88162110ddb502279dc90 /src | |
parent | 2c57caa8939a2d077912eeec287927da77c97ef7 (diff) |
vega: move ureg_destroy(ureg) after last use of ureg var
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/vega/shaders_cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vega/shaders_cache.c b/src/gallium/state_trackers/vega/shaders_cache.c index 023996ce2d8..70d860ddc8e 100644 --- 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) |