From: Emil Velikov Date: Wed, 14 Oct 2015 15:49:59 +0000 (+0100) Subject: targets/nine: add note about fd owndership X-Git-Tag: upstream/17.1.0~14328 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09422507817d21e989004bc93e7447f37cffc9ab;p=platform%2Fupstream%2Fmesa.git 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 Signed-off-by: Emil Velikov Acked-by: Rob Clark --- diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index c890191..84cfb94 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -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;