From 200cf6884ca06ecd4f3a8dcbf8f88e2d04ebab32 Mon Sep 17 00:00:00 2001
From: Stephan Schmid <stephan_2303@gmx.de>
Date: Mon, 11 Oct 2010 15:49:56 +0200
Subject: [PATCH] r600g: fix relative addressing when splitting constant accesses
---
src/gallium/drivers/r600/r600_shader.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
@@ -796,6 +796,7 @@ static int tgsi_split_constant(struct r600_shader_ctx *ctx, struct r600_bc_alu_s
alu.inst = CTX_INST(V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOV);
alu.src[0].sel = r600_src[i].sel;
alu.src[0].chan = k;
+ alu.src[0].rel = r600_src[i].rel;
alu.dst.sel = treg;
alu.dst.chan = k;
alu.dst.write = 1;
@@ -806,6 +807,7 @@ static int tgsi_split_constant(struct r600_shader_ctx *ctx, struct r600_bc_alu_s
return r;
}
r600_src[i].sel = treg;
+ r600_src[i].rel =0;
j--;
}
}
--
1.7.1