src/gallium/winsys/ethosu/drm/ethosu_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 "ethosu/ethosu_device.h" |
| 12 | #include "ethosu_drm_public.h" |
| 13 | |
| 14 | struct pipe_screen * |
| 15 | ethosu_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 | ethosu_screen_create); |
| 19 | } |