mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
ac: fix the return value in cull_bbox when bbox culling is disabled
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3095>
This commit is contained in:
parent
e5e3ffa6b9
commit
f90cbd18ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue