mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 10:50:23 +01:00
ac/nir/lower_ngg_gs: build streamout after lowering intrinsics
Streamout will require prerast info, which is gathered by lower_ngg_gs_intrinsics. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35351>
This commit is contained in:
parent
83dc5917fe
commit
3dd3f2f889
1 changed files with 3 additions and 3 deletions
|
|
@ -931,12 +931,12 @@ ac_nir_lower_ngg_gs(nir_shader *shader, const ac_nir_lower_ngg_options *options)
|
|||
nir_barrier(b, .execution_scope=SCOPE_WORKGROUP, .memory_scope=SCOPE_WORKGROUP,
|
||||
.memory_semantics=NIR_MEMORY_ACQ_REL, .memory_modes=nir_var_mem_shared);
|
||||
|
||||
/* Lower the GS intrinsics (it also gathers ac_nir_prerast_out) */
|
||||
lower_ngg_gs_intrinsics(shader, &state);
|
||||
|
||||
if (state.streamout_enabled)
|
||||
ngg_gs_build_streamout(b, &state);
|
||||
|
||||
/* Lower the GS intrinsics */
|
||||
lower_ngg_gs_intrinsics(shader, &state);
|
||||
|
||||
if (!state.vertex_count[0]) {
|
||||
fprintf(stderr, "Could not find set_vertex_and_primitive_count for stream 0. This would hang your GPU.");
|
||||
abort();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue