nir: Initialize source as a NULL SSA def
This keeps src_is_valid working without depending on registers. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>
This commit is contained in:

committed by
Marge Bot

parent
fb79497b44
commit
d18dfe6e27
@@ -603,8 +603,8 @@ nir_block_create(nir_shader *shader)
|
||||
static inline void
|
||||
src_init(nir_src *src)
|
||||
{
|
||||
src->is_ssa = false;
|
||||
src->reg.reg = NULL;
|
||||
src->is_ssa = true;
|
||||
src->ssa = NULL;
|
||||
}
|
||||
|
||||
nir_if *
|
||||
|
Reference in New Issue
Block a user