projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e317a4
)
ralloc: Allow reparenting to a NULL context
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 16 Aug 2017 23:50:46 +0000
(16:50 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 13 Oct 2017 05:39:31 +0000
(22:39 -0700)
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <idr@freedesktop.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/ralloc.c
patch
|
blob
|
history
diff --git
a/src/util/ralloc.c
b/src/util/ralloc.c
index 9cce9e02f68637f33ec776221cbd8d48c5ad72b0..42cfa2e391d52df68db265b4a4488c469294e0df 100644
(file)
--- a/
src/util/ralloc.c
+++ b/
src/util/ralloc.c
@@
-285,7
+285,7
@@
ralloc_steal(const void *new_ctx, void *ptr)
return;
info = get_header(ptr);
- parent =
get_header(new_ctx)
;
+ parent =
new_ctx ? get_header(new_ctx) : NULL
;
unlink_block(info);