iris: Change keybox parenting
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Jun 2019 20:15:35 +0000 (13:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Nov 2019 17:50:59 +0000 (09:50 -0800)
commitacd36e488d359f26ebdc678bd16a98682dfd590f
tree51307f9e69b1f5c672b298b3ad0e73b3ace136f4
parentca353285cb07c36bec0b7aa2f96df6d4c6827ff0
iris: Change keybox parenting

For temporary lookups, just allocate out of the NULL ralloc context,
so we don't have to edit the linked list of ralloc children to add it
and then immediately remove it again.

When uploading a new shader, allocate the keybox off the shader, so
if we delete the shader the keybox also goes away.  Less manual cleanup.
src/gallium/drivers/iris/iris_program_cache.c