Mesa (master): radeonsi: Handle TGSI TXL opcode.

Michel Dänzer daenzer at kemper.freedesktop.org
Wed Nov 14 11:35:03 UTC 2012


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

Author: Michel Dänzer <michel.daenzer at amd.com>
Date:   Tue Nov  6 17:41:50 2012 +0100

radeonsi: Handle TGSI TXL opcode.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

---

 src/gallium/drivers/radeonsi/radeonsi_shader.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index a5dddfb..21e9018 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -792,6 +792,12 @@ static const struct lp_build_tgsi_action txb_action = {
 	.intr_name = "llvm.SI.sample.bias"
 };
 
+static const struct lp_build_tgsi_action txl_action = {
+	.fetch_args = tex_fetch_args,
+	.emit = lp_build_tgsi_intrinsic,
+	.intr_name = "llvm.SI.sample.lod"
+};
+
 
 int si_pipe_shader_create(
 	struct pipe_context *ctx,
@@ -829,6 +835,7 @@ int si_pipe_shader_create(
 
 	bld_base->op_actions[TGSI_OPCODE_TEX] = tex_action;
 	bld_base->op_actions[TGSI_OPCODE_TXB] = txb_action;
+	bld_base->op_actions[TGSI_OPCODE_TXL] = txl_action;
 	bld_base->op_actions[TGSI_OPCODE_TXP] = tex_action;
 
 	si_shader_ctx.radeon_bld.load_input = declare_input;




More information about the mesa-commit mailing list