ac/llvm: rename ac_cull_triangle -> ac_cull_primitive

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13048>
This commit is contained in:
Marek Olšák 2021-09-26 15:21:34 -04:00 committed by Marge Bot
parent 0030bdf9a6
commit e7e0b90c94
3 changed files with 13 additions and 13 deletions

View file

@ -224,11 +224,11 @@ static void cull_bbox(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
* \param options See ac_cull_options.
* \param accept_func Callback invoked in the inner-most branch where the primitive is accepted.
*/
void ac_cull_triangle(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
LLVMValueRef initially_accepted, LLVMValueRef vp_scale[2],
LLVMValueRef vp_translate[2], LLVMValueRef small_prim_precision,
struct ac_cull_options *options, ac_cull_accept_func accept_func,
void *userdata)
void ac_cull_primitive(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
LLVMValueRef initially_accepted, LLVMValueRef vp_scale[2],
LLVMValueRef vp_translate[2], LLVMValueRef small_prim_precision,
struct ac_cull_options *options, ac_cull_accept_func accept_func,
void *userdata)
{
struct ac_position_w_info w;
ac_analyze_position_w(ctx, pos, &w);

View file

@ -52,10 +52,10 @@ struct ac_cull_options {
typedef void (*ac_cull_accept_func)(struct ac_llvm_context *ctx, LLVMValueRef accepted,
void *userdata);
void ac_cull_triangle(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
LLVMValueRef initially_accepted, LLVMValueRef vp_scale[2],
LLVMValueRef vp_translate[2], LLVMValueRef small_prim_precision,
struct ac_cull_options *options, ac_cull_accept_func accept_func,
void *userdata);
void ac_cull_primitive(struct ac_llvm_context *ctx, LLVMValueRef pos[3][4],
LLVMValueRef initially_accepted, LLVMValueRef vp_scale[2],
LLVMValueRef vp_translate[2], LLVMValueRef small_prim_precision,
struct ac_cull_options *options, ac_cull_accept_func accept_func,
void *userdata);
#endif

View file

@ -1006,9 +1006,9 @@ void gfx10_emit_ngg_culling_epilogue(struct ac_shader_abi *abi)
gs_accepted,
(void*)gs_vtxptr,
};
ac_cull_triangle(&ctx->ac, pos, ctx->ac.i1true, vp_scale, vp_translate,
small_prim_precision, &options,
gfx10_build_primitive_accepted, params);
ac_cull_primitive(&ctx->ac, pos, ctx->ac.i1true, vp_scale, vp_translate,
small_prim_precision, &options,
gfx10_build_primitive_accepted, params);
}
ac_build_endif(&ctx->ac, 16002);
ac_build_s_barrier(&ctx->ac);