Re: [Mesa-dev] [PATCH 3/3] ac/nir: fix nir_op_unpack_64_2x32_split_y emission

2017-08-01 Thread Nicolai Hähnle

On 01.08.2017 03:41, Connor Abbott wrote:

From: Connor Abbott 

This was broken thanks to a typo in b2367cf.

Cc: Nicolai Hähnle 


Sorry about that!

Reviewed-by: Nicolai Hähnle 



---
  src/amd/common/ac_nir_to_llvm.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 75f3f78..f756b9a 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -1895,7 +1895,7 @@ static void visit_alu(struct ac_nir_context *ctx, const 
nir_alu_instr *instr)
LLVMVectorType(ctx->ac.i32, 
2),
"");
result = LLVMBuildExtractElement(ctx->ac.builder, tmp,
-ctx->ac.i32_0, "");
+ctx->ac.i32_1, "");
break;
}
  



___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH 3/3] ac/nir: fix nir_op_unpack_64_2x32_split_y emission

2017-07-31 Thread Connor Abbott
From: Connor Abbott 

This was broken thanks to a typo in b2367cf.

Cc: Nicolai Hähnle 
---
 src/amd/common/ac_nir_to_llvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 75f3f78..f756b9a 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -1895,7 +1895,7 @@ static void visit_alu(struct ac_nir_context *ctx, const 
nir_alu_instr *instr)
LLVMVectorType(ctx->ac.i32, 
2),
"");
result = LLVMBuildExtractElement(ctx->ac.builder, tmp,
-ctx->ac.i32_0, "");
+ctx->ac.i32_1, "");
break;
}
 
-- 
2.9.4

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev