ac/nir/ngg: Add a few comments explaining some variables.

These were somewhat confusing, so let's add a few words to
explain what they are exactly.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33218>
This commit is contained in:
Timur Kristóf 2025-01-25 02:33:04 +01:00 committed by Marge Bot
parent 28f49bf99c
commit 23641d4032

View file

@ -36,9 +36,26 @@ typedef struct
nir_variable *position_value_var;
nir_variable *prim_exp_arg_var;
/**
* Whether the current invocation's vertex (if any) is accepted by the culling algorithm.
* Only used when culling is enabled.
*/
nir_variable *es_accepted_var;
/**
* hether the current invocation's primitive (if any) is accepted by the culling algorithm.
* Only used when culling is enabled.
*/
nir_variable *gs_accepted_var;
/**
* Whether the current invocation's primitive (if any) should be exported.
* Initially set to whether the invocation has a vertex, then set to false by the culling
* algorithm if the primitive is rejected.
*/
nir_variable *gs_exported_var;
nir_variable *gs_vtx_indices_vars[3];
nir_def *vtx_addr[3];