mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:7029ec05e2("gallium: Add renderonly-based support for pl111+vc4.") (cherry picked from commit99ef66c325)
This commit is contained in:
parent
8f1c75e9a0
commit
92273935a5
1 changed files with 1 additions and 1 deletions
|
|
@ -37,5 +37,5 @@ vc4_drm_screen_create(int fd)
|
|||
struct pipe_screen *
|
||||
vc4_drm_screen_create_renderonly(struct renderonly *ro)
|
||||
{
|
||||
return vc4_screen_create(fcntl(ro->gpu_fd, F_DUPFD_CLOEXEC, 3), ro);
|
||||
return vc4_screen_create(ro->gpu_fd, ro);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue