From: Kenneth Graunke Date: Mon, 18 Oct 2010 19:21:20 +0000 (-0700) Subject: i965: Add missing "break" statement. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65d4234c2398aaa48eb5e29e6e7bede40fe2fd36;p=mesa.git i965: Add missing "break" statement. Otherwise, it would try to handle arrays as structures, use uninitialized memory, and crash. --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 554ba39a0cd..85fd6d06b92 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -941,6 +941,7 @@ fs_visitor::emit_assignment_writes(fs_reg &l, fs_reg &r, for (unsigned int i = 0; i < type->length; i++) { emit_assignment_writes(l, r, type->fields.array, predicated); } + break; case GLSL_TYPE_STRUCT: for (unsigned int i = 0; i < type->length; i++) {