Mesa (master): radv: fix samples_identical return value.
Dave Airlie
airlied at kemper.freedesktop.org
Wed Oct 19 07:41:52 UTC 2016
Module: Mesa
Branch: master
Commit: 67c91ef2a228b0843bdbb4b7b7128ef45e3dd71f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=67c91ef2a228b0843bdbb4b7b7128ef45e3dd71f
Author: Dave Airlie <airlied at redhat.com>
Date: Wed Oct 19 15:43:26 2016 +1000
radv: fix samples_identical return value.
This was returning an inversion, so not doing as it should have.
We need to compare the fmask value with 0, and return the result
from that.
---
src/amd/common/ac_nir_to_llvm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index ad32e15..e2f6bca 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -3410,6 +3410,9 @@ static void visit_tex(struct nir_to_llvm_context *ctx, nir_tex_instr *instr)
txf_address, txf_count, 0xf);
result = build_tex_intrinsic(ctx, instr, &txf_info);
+
+ result = LLVMBuildExtractElement(ctx->builder, result, ctx->i32zero, "");
+ result = LLVMBuildICmp(ctx->builder, LLVMIntEQ, result, ctx->i32zero, "");
goto write_result;
}
More information about the mesa-commit
mailing list