Mesa (master): r600g: initialize inst_mod in r600_tex_from_byte_stream

Vadim Girlin vadimg at kemper.freedesktop.org
Tue Dec 18 13:51:23 UTC 2012


Module: Mesa
Branch: master
Commit: 63cabf0abb2b05043205899e86a455b340142afe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=63cabf0abb2b05043205899e86a455b340142afe

Author: Vadim Girlin <vadimgirlin at gmail.com>
Date:   Tue Dec 18 17:40:06 2012 +0400

r600g: initialize inst_mod in r600_tex_from_byte_stream

Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>

---

 src/gallium/drivers/r600/r600_shader.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index fbbd0fb..bcd43f1 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;




More information about the mesa-commit mailing list