Silence compiler warnings with DEBUG undefined

Otherwise the compiler reports unused variables even though they are
used as arguments for DEBUG_MSG() macro.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Introduce support for verbose debug messages

Purpose of the new VERBOSE_MSG() macro is to separate overly verbose
messages used only to debug fakedrm from those that can be useful for
debugging client code.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Enable debug by default

This should be done from CMake, but for now just enable it...

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Rename struct dummy_drm_desc to fakedrm_file_desc

For consistency with other structs.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Implement a bit less dummy Exynos G2D/G3D pipe IOCTLs

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Close BO SHM objects when closing BO handle

We assume handle == fd, so closing a handle means closing a file
descriptor.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Unmap BO data memory in bo_unmap

Real munmap() needs to be used to remove the mapping.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>