OSDN Git Service

vc4: Don't leak the GPU fd for renderonly usage.
authorEric Anholt <eric@anholt.net>
Wed, 16 Jan 2019 00:02:23 +0000 (16:02 -0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 29 Jan 2019 15:20:43 +0000 (15:20 +0000)
commit92273935a56f5b006ab51f0ec549027f367f1209
treed8535372620b7f186e7241ba956f9c3efeeb7f5a
parent8f1c75e9a00dbd9e3864b2dd9e7982a7d9847527
vc4: Don't leak the GPU fd for renderonly usage.

Noticed while debugging V3D -- the ro->gpu_fd was freshly opened in ro
setup, and it needs to stay open until screen close (since it may be used
by renderonly) and should be the same one used by the vc4 screen.

Fixes: 7029ec05e2c7 ("gallium: Add renderonly-based support for pl111+vc4.")
(cherry picked from commit 99ef66c325a99b3e191987d8327e7e4cd4aafcd7)
src/gallium/winsys/vc4/drm/vc4_drm_winsys.c