Cross Reference: pipe_vmwgfx.c
xref: /xsrc/external/mit/MesaLib.old/dist/src/gallium/targets/pipe-loader/pipe_vmwgfx.c
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /xsrc/external/mit/MesaLib.old/dist/src/gallium/targets/pipe-loader/
1848b8605Smrg
2848b8605Smrg#include "target-helpers/inline_debug_helper.h"
3848b8605Smrg#include "state_tracker/drm_driver.h"
4848b8605Smrg#include "svga/drm/svga_drm_public.h"
5848b8605Smrg#include "svga/svga_public.h"
6848b8605Smrg
7848b8605Smrgstatic struct pipe_screen *
8b8e80941Smrgcreate_screen(int fd, const struct pipe_screen_config *config)
9848b8605Smrg{
10848b8605Smrg   struct svga_winsys_screen *sws;
11848b8605Smrg   struct pipe_screen *screen;
12848b8605Smrg
13848b8605Smrg   sws = svga_drm_winsys_screen_create(fd);
14848b8605Smrg   if (!sws)
15848b8605Smrg      return NULL;
16848b8605Smrg
17848b8605Smrg   screen = svga_screen_create(sws);
18848b8605Smrg   if (!screen)
19848b8605Smrg      return NULL;
20848b8605Smrg
21848b8605Smrg   screen = debug_screen_wrap(screen);
22848b8605Smrg
23848b8605Smrg   return screen;
24848b8605Smrg}
25848b8605Smrg
26848b8605SmrgPUBLIC
27b8e80941SmrgDRM_DRIVER_DESCRIPTOR("vmwgfx", NULL, create_screen)
28

Indexes created Sun Nov 30 21:09:37 GMT 2025