mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 23:20:23 +01:00
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:
parent
fb79497b44
commit
d18dfe6e27
1 changed files with 2 additions and 2 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue