vega: move ureg_destroy(ureg) after last use of ureg var

This commit is contained in:
Brian Paul
2011-04-15 08:31:10 -06:00
parent 2c57caa893
commit 1b800c10e4
@@ -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)