crocus: take a reference to memobj bo in crocus_resource_from_memobj
authorTapani Pälli <tapani.palli@intel.com>
Wed, 28 Jul 2021 07:21:52 +0000 (10:21 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 9 Aug 2021 02:38:50 +0000 (05:38 +0300)
commite47b72e931cb1451f001349fac13b38acb986ce3
tree13b1f68de983156cf05bed76c64f9570cd88c193
parent13677a909276a162e98112c65c1b3364741fae04
crocus: take a reference to memobj bo in crocus_resource_from_memobj

This is the same fix as commit 2d87ea31665 for iris driver.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10609>
src/gallium/drivers/crocus/crocus_resource.c