mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
crocus: Add support for get_screen_fd
Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21654>
This commit is contained in:
parent
4faa0c2f10
commit
b18f259177
1 changed files with 9 additions and 0 deletions
|
|
@ -710,6 +710,14 @@ crocus_shader_perf_log(void *data, unsigned *id, const char *fmt, ...)
|
|||
va_end(args);
|
||||
}
|
||||
|
||||
static int
|
||||
crocus_screen_get_fd(struct pipe_screen *pscreen)
|
||||
{
|
||||
struct crocus_screen *screen = (struct crocus_screen *)pscreen;
|
||||
|
||||
return screen->winsys_fd;
|
||||
}
|
||||
|
||||
struct pipe_screen *
|
||||
crocus_screen_create(int fd, const struct pipe_screen_config *config)
|
||||
{
|
||||
|
|
@ -797,6 +805,7 @@ crocus_screen_create(int fd, const struct pipe_screen_config *config)
|
|||
pscreen->get_name = crocus_get_name;
|
||||
pscreen->get_vendor = crocus_get_vendor;
|
||||
pscreen->get_device_vendor = crocus_get_device_vendor;
|
||||
pscreen->get_screen_fd = crocus_screen_get_fd;
|
||||
pscreen->get_param = crocus_get_param;
|
||||
pscreen->get_shader_param = crocus_get_shader_param;
|
||||
pscreen->get_compute_param = crocus_get_compute_param;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue