From: Vadim Girlin Date: Tue, 18 Dec 2012 13:40:06 +0000 (+0400) Subject: r600g: initialize inst_mod in r600_tex_from_byte_stream X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63cabf0abb2b05043205899e86a455b340142afe;p=mesa.git r600g: initialize inst_mod in r600_tex_from_byte_stream Signed-off-by: Vadim Girlin --- diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index fbbd0fb685b..bcd43f10326 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -465,6 +465,8 @@ static unsigned r600_tex_from_byte_stream(struct r600_shader_ctx *ctx, tex.src_sel_z = bytes[bytes_read++]; tex.src_sel_w = bytes[bytes_read++]; + tex.inst_mod = 0; + r600_bytecode_add_tex(ctx->bc, &tex); return bytes_read;