[Mesa-dev] [PATCH] r600g/llvm: Add support for native isa for pre EG

Tom Stellard tom at stellard.net
Sun Apr 7 12:59:34 PDT 2013


On Sun, Apr 07, 2013 at 09:45:35PM +0200, Vincent Lejeune wrote:
> This fixes bug 62756 :
> https://bugs.freedesktop.org/show_bug.cgi?id=62756#c12
> 
> (Requires corresponding llvm commit)

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

> ---
>  src/gallium/drivers/r600/r600_asm.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
> index a0dc1de..26a848a 100644
> --- a/src/gallium/drivers/r600/r600_asm.c
> +++ b/src/gallium/drivers/r600/r600_asm.c
> @@ -1494,7 +1494,11 @@ static int r600_bytecode_cf_build(struct r600_bytecode *bc, struct r600_bytecode
>  	const struct cf_op_info *cfop = r600_isa_cf(cf->op);
>  	unsigned opcode = r600_isa_cf_opcode(bc->isa->hw_class, cf->op);
>  
> -	if (cfop->flags & CF_ALU) {
> +
> +	if (cf->op == CF_NATIVE) {
> +		bc->bytecode[id++] = cf->isa[0];
> +		bc->bytecode[id++] = cf->isa[1];
> +	} else if (cfop->flags & CF_ALU) {
>  		bc->bytecode[id++] = S_SQ_CF_ALU_WORD0_ADDR(cf->addr >> 1) |
>  			S_SQ_CF_ALU_WORD0_KCACHE_MODE0(cf->kcache[0].mode) |
>  			S_SQ_CF_ALU_WORD0_KCACHE_BANK0(cf->kcache[0].bank) |
> -- 
> 1.8.1.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