src/gallium/winsys/rocket/drm/rkt_drm_winsys.c
raw| 1 | /* |
| 2 | * Copyright 2014 Broadcom |
| 3 | * Copyright 2018 Alyssa Rosenzweig |
| 4 | * Copyright 2025 Tomeu Vizoso |
| 5 | * SPDX-License-Identifier: MIT |
| 6 | */ |
| 7 | |
| 8 | #include "util/os_file.h" |
| 9 | #include "util/u_screen.h" |
| 10 | |
| 11 | #include "rocket/rkt_device.h" |
| 12 | #include "rkt_drm_public.h" |
| 13 | |
| 14 | struct pipe_screen * |
| 15 | rkt_drm_screen_create(int fd, const struct pipe_screen_config *config) |
| 16 | { |
| 17 | return u_pipe_screen_lookup_or_create(os_dupfd_cloexec(fd), config, NULL, |
| 18 | rkt_screen_create); |
| 19 | } |