projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb79497
)
nir: Initialize source as a NULL SSA def
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Thu, 3 Aug 2023 19:15:49 +0000
(15:15 -0400)
committer
Marge Bot
<emma+marge@anholt.net>
Thu, 3 Aug 2023 22:40:29 +0000
(22:40 +0000)
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>
src/compiler/nir/nir.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir.c
b/src/compiler/nir/nir.c
index
19d9a38
..
d87ec33
100644
(file)
--- a/
src/compiler/nir/nir.c
+++ b/
src/compiler/nir/nir.c
@@
-603,8
+603,8
@@
nir_block_create(nir_shader *shader)
static inline void
src_init(nir_src *src)
{
- src->is_ssa =
fals
e;
- src->
reg.reg
= NULL;
+ src->is_ssa =
tru
e;
+ src->
ssa
= NULL;
}
nir_if *