summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-10-14 16:49:59 +0100
committerEmil Velikov <[email protected]>2015-11-21 12:52:21 +0000
commit09422507817d21e989004bc93e7447f37cffc9ab (patch)
treeab3fcee409c93b722768573d5fcf06d53b2e8418
parentf8a1665542d2bee829ab0c1bbde533f32d983e96 (diff)
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 <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Acked-by: Rob Clark <[email protected]>
-rw-r--r--src/gallium/targets/d3dadapter9/drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c
index c890191124e..84cfb943eaf 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;