diff options
author | Marek Olšák <[email protected]> | 2019-12-12 17:01:39 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2019-12-16 20:06:07 +0000 |
commit | f90cbd18ff43ae493f03ed86b12df5439eee58c0 (patch) | |
tree | acd4e64b92932336b4c73111c10d03586ec3a549 | |
parent | e5e3ffa6b93e005eb122b9cf510ee34b4cf6886b (diff) |
ac: fix the return value in cull_bbox when bbox culling is disabled
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3095>
-rw-r--r-- | src/amd/llvm/ac_llvm_cull.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/llvm/ac_llvm_cull.c b/src/amd/llvm/ac_llvm_cull.c index 1c2da3e0418..9e8409fdbaf 100644 --- a/src/amd/llvm/ac_llvm_cull.c +++ b/src/amd/llvm/ac_llvm_cull.c @@ -136,7 +136,7 @@ static LLVMValueRef cull_bbox(struct ac_llvm_context *ctx, LLVMBuilderRef builder = ctx->builder; if (!cull_view_xy && !cull_view_near_z && !cull_view_far_z && !cull_small_prims) - return ctx->i1true; + return initially_accepted; /* Skip the culling if the primitive has already been rejected or * if any W is negative. The bounding box culling doesn't work when |