nir: default-initialize next_stage

this avoids printing `next_stage: VERTEX` for internal compute shaders which is
all kinds of silly!

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33605>
This commit is contained in:
Alyssa Rosenzweig 2025-02-11 09:20:42 -05:00 committed by Marge Bot
parent 8536760016
commit 656422df8a

View file

@ -213,6 +213,11 @@ nir_shader_create(void *mem_ctx,
shader->info = *si;
} else {
shader->info.stage = stage;
/* Assume there is no known next stage, this is the case for
* nir_builder_init_simple_shaders for example.
*/
shader->info.next_stage = MESA_SHADER_NONE;
}
exec_list_make_empty(&shader->functions);