targets/nine: add note about fd owndership

v2:
 - move autotools hunk into correct patch
 - correct the note based on Axel's feedback

Cc: Axel Davy <axel.davy@ens.fr>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Emil Velikov 2015-10-14 16:49:59 +01:00
parent f8a1665542
commit 0942250781

View file

@ -216,6 +216,8 @@ drm_create_adapter( int fd,
ctx->base.destroy = drm_destroy;
/* Although the fd is provided from external source, mesa/nine
* takes ownership of it. */
fd = loader_get_user_preferred_fd(fd, &different_device);
ctx->fd = fd;
ctx->base.linear_framebuffer = !!different_device;