summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2012-12-18 17:40:06 +0400
committerVadim Girlin <[email protected]>2012-12-18 17:40:57 +0400
commit63cabf0abb2b05043205899e86a455b340142afe (patch)
tree966775b5b2450fc9a64942efad6e1e67647503f9 /src/gallium/drivers/r600
parentdc613f11ddf1f3a6e10c2d99830fb1a84fdb55b2 (diff)
r600g: initialize inst_mod in r600_tex_from_byte_stream
Signed-off-by: Vadim Girlin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c2
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 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;