[Mesa-dev] [PATCH] r600g: use load_ar checks with llvm output.

Tom Stellard tom at stellard.net
Fri Nov 16 14:25:12 PST 2012


On Tue, Nov 06, 2012 at 04:18:06PM +0100, Vincent Lejeune wrote:
> ---

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

I've tested this with my indirect-addressing branch and it works.  Go
ahead and push.
>  src/gallium/drivers/r600/r600_shader.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
> index 4634c30..1dc0cc2 100644
> --- a/src/gallium/drivers/r600/r600_shader.c
> +++ b/src/gallium/drivers/r600/r600_shader.c
> @@ -344,6 +344,12 @@ static unsigned r600_alu_from_byte_stream(struct r600_shader_ctx *ctx,
>  	}
>  #endif
>  
> +	if (alu.inst == CTX_INST(V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOVA_INT)) {
> +		ctx->bc->ar_reg = alu.src[0].sel;
> +		ctx->bc->ar_loaded = 0;
> +		return bytes_read;
> +	}
> +
>  	if (alu.execute_mask) {
>  		alu.pred_sel = 0;
>  		r600_bytecode_add_alu_type(ctx->bc, &alu, CTX_INST(V_SQ_CF_ALU_WORD1_SQ_CF_INST_ALU_PUSH_BEFORE));
> -- 
> 1.7.11.7
> 
> _______________________________________________
> 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