| 1 | /* |
| 2 | * Copyright © 2023 Imagination Technologies Ltd. |
| 3 | * SPDX-License-Identifier: MIT |
| 4 | */ |
| 5 | |
| 6 | #include "util/os_file.h" |
| 7 | #include "util/u_screen.h" |
| 8 | |
| 9 | #include "zink_drm_public.h" |
| 10 | #include "zink/zink_public.h" |
| 11 | |
| 12 | struct pipe_screen * |
| 13 | zink_drm_create_screen_renderonly(int fd, |
| 14 | struct renderonly *ro, |
| 15 | const struct pipe_screen_config *config) |
| 16 | { |
| 17 | /* The fd is dup'ed in zink_drm_create_screen() */ |
| 18 | return u_pipe_screen_lookup_or_create(fd, config, ro, zink_drm_create_screen); |
| 19 | } |