freedreno: Implement memory object create/destroy for GL_EXT_memory_object
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 7 Apr 2020 06:52:25 +0000 (08:52 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 20:40:40 +0000 (20:40 +0000)
commit0eecd3d68466327567df7da468cc2088a652e22f
tree1c74b6640c9862238fa474bde6223d9285117388
parente48f27ee6454db2856ee24be78873513867c11a0
freedreno: Implement memory object create/destroy for GL_EXT_memory_object

v2: Add implementation of fd_memobj_destroy() virtual func, which was newly
added.

v3: The memobj bo must be non-NULL and destroyed as part of memobj
destruction (instead of its reference being stolen). (Rob Clark)

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4565>
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_resource.h