Cross Reference: pipe_radeonsi.c
xref: /xsrc/external/mit/MesaLib.old/dist/src/gallium/targets/pipe-loader/pipe_radeonsi.c
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /xsrc/external/mit/MesaLib.old/dist/src/gallium/targets/pipe-loader/
pipe_radeonsi.c revision b8e80941
1#include "state_tracker/drm_driver.h"
2#include "target-helpers/inline_debug_helper.h"
3#include "radeon/drm/radeon_drm_public.h"
4#include "radeon/radeon_winsys.h"
5#include "amdgpu/drm/amdgpu_public.h"
6#include "radeonsi/si_public.h"
7#include "util/xmlpool.h"
8
9static struct pipe_screen *
10create_screen(int fd, const struct pipe_screen_config *config)
11{
12   struct radeon_winsys *rw;
13
14   /* First, try amdgpu. */
15   rw = amdgpu_winsys_create(fd, config, radeonsi_screen_create);
16
17   if (!rw)
18      rw = radeon_drm_winsys_create(fd, config, radeonsi_screen_create);
19
20   return rw ? debug_screen_wrap(rw->screen) : NULL;
21}
22
23static const char *driconf_xml =
24   #include "radeonsi/si_driinfo.h"
25   ;
26
27PUBLIC
28DRM_DRIVER_DESCRIPTOR("radeonsi", &driconf_xml, create_screen)
29

Indexes created Fri Dec 05 23:09:40 GMT 2025