[Mesa-dev] [PATCH 1/3] r600g: initialize inst_mod in r600_tex_from_byte_stream

Vadim Girlin vadimgirlin at gmail.com
Sat Dec 15 11:29:38 PST 2012


Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
 src/gallium/drivers/r600/r600_shader.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index f007204..987ad51 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;
-- 
1.8.0.2



More information about the mesa-dev mailing list