From 2c4d96350b315dbaf63b652bdcd5c50be3d30431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Thu, 5 Jun 2014 09:44:50 +0300 Subject: [PATCH] i965: initialize brw_reg struct when generating code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 07af0ab changed fs_inst to have 0 sources for SHADER_OPCODE_TEX for gen <7 (Ironlake, SNB), while fs_generator uses a single source from brw_reg struct, patch initializes the structure. Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79534 --- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index 3ff7682..396c8bc 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp @@ -1335,7 +1335,7 @@ fs_generator::generate_code(exec_list *instructions) foreach_list(node, instructions) { fs_inst *inst = (fs_inst *)node; - struct brw_reg src[3], dst; + struct brw_reg src[3] = {0}, dst; unsigned int last_insn_offset = p->next_insn_offset; if (unlikely(debug_flag)) -- 1.8.3.1