Mesa (master): r600g: Handle texture fetch instructions with relative addressing

Henri Verbeet hverbeet at kemper.freedesktop.org
Sun Mar 27 13:00:55 UTC 2011


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

Author: Fabian Bieler <der.fabe at gmx.net>
Date:   Wed Mar 23 23:27:01 2011 +0100

r600g: Handle texture fetch instructions with relative addressing

Signed-off-by: Henri Verbeet <hverbeet at gmail.com>

---

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

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index a835e1c..6eac1f7 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1706,6 +1706,7 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
 		tex.src_sel_y = ctx->src[0].swizzle[1];
 		tex.src_sel_z = ctx->src[0].swizzle[2];
 		tex.src_sel_w = ctx->src[0].swizzle[3];
+		tex.src_rel = ctx->src[0].rel;
 	}
 
 	if (inst->Texture.Texture == TGSI_TEXTURE_CUBE) {




More information about the mesa-commit mailing list