mesa: add support for memory object creation/import/delete
authorAndres Rodriguez <andresx7@gmail.com>
Wed, 12 Jul 2017 22:45:07 +0000 (18:45 -0400)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 6 Aug 2017 02:42:06 +0000 (12:42 +1000)
commit8b7c5744791fe403375dd1d61c4a99b882044415
treeec5728914a1f98d8d55c9919d304f479e225481e
parent322ee1b3636a38c22bc65009f13667a9d5f438cf
mesa: add support for memory object creation/import/delete

Used by EXT_external_objects and EXT_external_objects_fd

V2 (Timothy Arceri):
 - Throw GL_OUT_OF_MEMORY error if CreateMemoryObjectsEXT()
   fails.
 - C99 tidy ups
 - remove void cast (Constantine Kharlamov)

V3 (Timothy Arceri):
 - rename mo -> memObj
 - check that the object is not NULL before initializing
 - add missing "EXT" in function error message

V4 (Timothy Arceri):
 - remove checks for (memory objecy id == 0) and catch in
   _mesa_lookup_memory_object() instead.

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/drivers/common/driverfuncs.c
src/mesa/main/dd.h
src/mesa/main/externalobjects.c
src/mesa/main/externalobjects.h
src/mesa/main/mtypes.h
src/mesa/main/shared.c