[Mesa-dev] [PATCH 2/2] radeonsi: Handle TGSI TXL opcode.

Tom Stellard tom at stellard.net
Thu Nov 8 07:39:03 PST 2012


On Thu, Nov 08, 2012 at 04:28:44PM +0100, Michel Dänzer wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
> 
> 
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

For the series:
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

> ---
>  src/gallium/drivers/radeonsi/radeonsi_shader.c |    7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
> index 08c4438..c0a504c 100644
> --- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
> +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
> @@ -808,6 +808,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,
> @@ -845,6 +851,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;
> -- 
> 1.7.10.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list