summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.c
diff options
context:
space:
mode:
authorVincent Lejeune <[email protected]>2013-04-03 21:19:22 +0200
committerVincent Lejeune <[email protected]>2013-04-04 16:03:04 +0200
commit92769612233dade9b7d45d5058dc86efc18d7710 (patch)
tree5230950cb054df0d224b42afb17488933a6603a1 /src/gallium/drivers/r600/r600_shader.c
parentce5096a0a959b97f70c3df46a35bfe694e8c349c (diff)
r600g/llvm: Workaround for wrong tex.offset_*
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index d24d8e704e9..a5d224f5e1f 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -511,6 +511,9 @@ static unsigned r600_tex_from_byte_stream(struct r600_shader_ctx *ctx,
tex.src_sel_y = G_SQ_TEX_WORD2_SRC_SEL_Y(word2);
tex.src_sel_z = G_SQ_TEX_WORD2_SRC_SEL_Z(word2);
tex.src_sel_w = G_SQ_TEX_WORD2_SRC_SEL_W(word2);
+ tex.offset_x <<= 1;
+ tex.offset_y <<= 1;
+ tex.offset_z <<= 1;
tex.inst_mod = 0;