mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 15:20:38 +01:00
ac/nir/ngg: Add bool return value to ac_nir_lower_ngg_nogs.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33609>
This commit is contained in:
parent
fad58a99e8
commit
25adf353cc
2 changed files with 4 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ typedef struct {
|
|||
unsigned gs_out_vtx_bytes;
|
||||
} ac_nir_lower_ngg_options;
|
||||
|
||||
void
|
||||
bool
|
||||
ac_nir_lower_ngg_nogs(nir_shader *shader, const ac_nir_lower_ngg_options *options);
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -1638,7 +1638,7 @@ ngg_nogs_gather_outputs(nir_builder *b, struct exec_list *cf_list, lower_ngg_nog
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
bool
|
||||
ac_nir_lower_ngg_nogs(nir_shader *shader, const ac_nir_lower_ngg_options *options)
|
||||
{
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(shader);
|
||||
|
|
@ -1955,6 +1955,8 @@ ac_nir_lower_ngg_nogs(nir_shader *shader, const ac_nir_lower_ngg_options *option
|
|||
if (options->can_cull)
|
||||
progress |= cleanup_culling_shader_after_dce(shader, b->impl, &state);
|
||||
} while (progress);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue