aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-10-19 15:43:26 +1000
committerDave Airlie <[email protected]>2016-10-19 17:39:01 +1000
commit67c91ef2a228b0843bdbb4b7b7128ef45e3dd71f (patch)
tree0702aecb5a7b0a487ac4e1c598afd28034e99345 /src/amd
parent93ba86c307616af86bdfbae3576fc9493be418fd (diff)
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.
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index ad32e15ba12..e2f6bcaaa4e 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;
}