diff options
author | marha <marha@users.sourceforge.net> | 2013-07-26 07:45:10 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-07-26 07:45:10 +0200 |
commit | 8647aa1a5029fcd96f134103331ddf3c21bc0a0b (patch) | |
tree | 419501343bcdd7e12477b1f3bbc302815752ce55 /mesalib/src/glsl | |
parent | acf3535c75d7c79154b6b89c66567317944d244c (diff) | |
download | vcxsrv-8647aa1a5029fcd96f134103331ddf3c21bc0a0b.tar.gz vcxsrv-8647aa1a5029fcd96f134103331ddf3c21bc0a0b.tar.bz2 vcxsrv-8647aa1a5029fcd96f134103331ddf3c21bc0a0b.zip |
xserver mesa git update 26 Jul 2013
xserver commit bdd1e22cbde9ea2324e4e1991c9e152f22f88151
mesa commit 81a156d099b5c224d4a528b66a80e25626ed65bc
Diffstat (limited to 'mesalib/src/glsl')
-rw-r--r-- | mesalib/src/glsl/loop_analysis.cpp | 3 | ||||
-rw-r--r-- | mesalib/src/glsl/lower_named_interface_blocks.cpp | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/mesalib/src/glsl/loop_analysis.cpp b/mesalib/src/glsl/loop_analysis.cpp index 191e92de7..40897bb6f 100644 --- a/mesalib/src/glsl/loop_analysis.cpp +++ b/mesalib/src/glsl/loop_analysis.cpp @@ -503,7 +503,8 @@ is_loop_terminator(ir_if *ir) ir_instruction *const inst = (ir_instruction *) ir->then_instructions.get_head(); - assert(inst != NULL); + if (inst == NULL) + return false; if (inst->ir_type != ir_type_loop_jump) return false; diff --git a/mesalib/src/glsl/lower_named_interface_blocks.cpp b/mesalib/src/glsl/lower_named_interface_blocks.cpp index d0d491d3d..20196a356 100644 --- a/mesalib/src/glsl/lower_named_interface_blocks.cpp +++ b/mesalib/src/glsl/lower_named_interface_blocks.cpp @@ -129,9 +129,9 @@ flatten_named_interface_blocks_declarations::run(exec_list *instructions) iface_field_name); if (!found_var) { ir_variable *new_var; + char *var_name = + ralloc_strdup(mem_ctx, iface_t->fields.structure[i].name); if (array_t == NULL) { - char *var_name = - ralloc_strdup(mem_ctx, iface_t->fields.structure[i].name); new_var = new(mem_ctx) ir_variable(iface_t->fields.structure[i].type, var_name, @@ -141,10 +141,6 @@ flatten_named_interface_blocks_declarations::run(exec_list *instructions) glsl_type::get_array_instance( iface_t->fields.structure[i].type, array_t->length); - char *var_name = - ralloc_asprintf(mem_ctx, "%s[%d]", - iface_t->fields.structure[i].name, - array_t->length); new_var = new(mem_ctx) ir_variable(new_array_type, var_name, |