targets/nine: add note about fd owndership
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 14 Oct 2015 15:49:59 +0000 (16:49 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Nov 2015 12:52:21 +0000 (12:52 +0000)
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>
src/gallium/targets/d3dadapter9/drm.c

index c890191..84cfb94 100644 (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;