mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
vc4: replace open-coded F_DUPFD_CLOEXEC with os_dupfd_cloexec()
Just like 12 lines above. Split out of !20180 Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20313>
This commit is contained in:
parent
78a75e0d25
commit
ba31ec0d6f
1 changed files with 1 additions and 1 deletions
|
|
@ -61,5 +61,5 @@ struct pipe_screen *
|
|||
vc4_drm_screen_create_renderonly(struct renderonly *ro,
|
||||
const struct pipe_screen_config *config)
|
||||
{
|
||||
return vc4_screen_create(fcntl(ro->gpu_fd, F_DUPFD_CLOEXEC, 3), ro);
|
||||
return vc4_screen_create(os_dupfd_cloexec(ro->gpu_fd), ro);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue