mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 06:50:37 +02:00
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:
parent
8536760016
commit
656422df8a
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue