mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-a0a453e43f6efec864267a20a555a5c1ffe7eabc / contrib / dri_util.c.patch
blob53fa18bf46b982795b7a7f16fcfbbb62e9361026
1 diff --git a/src/gallium/frontends/dri/dri_util.c b/src/gallium/frontends/dri/dri_util.c
2 index ed102450ecf..5898a1f437a 100644
3 --- a/src/gallium/frontends/dri/dri_util.c
4 +++ b/src/gallium/frontends/dri/dri_util.c
5 @@ -186,35 +186,6 @@ dri2CreateNewScreen(int scrn, int fd,
6 driver_configs, data);
9 -static __DRIscreen *
10 -swkmsCreateNewScreen(int scrn, int fd,
11 - const __DRIextension **extensions,
12 - const __DRIconfig ***driver_configs, void *data)
14 - return driCreateNewScreen2(scrn, fd, extensions,
15 - dri_swrast_kms_driver_extensions,
16 - driver_configs, data);
19 -/** swrast driver createNewScreen entrypoint. */
20 -static __DRIscreen *
21 -driSWRastCreateNewScreen(int scrn, const __DRIextension **extensions,
22 - const __DRIconfig ***driver_configs, void *data)
24 - return driCreateNewScreen2(scrn, -1, extensions,
25 - galliumsw_driver_extensions,
26 - driver_configs, data);
29 -static __DRIscreen *
30 -driSWRastCreateNewScreen2(int scrn, const __DRIextension **extensions,
31 - const __DRIextension **driver_extensions,
32 - const __DRIconfig ***driver_configs, void *data)
34 - return driCreateNewScreen2(scrn, -1, extensions, driver_extensions,
35 - driver_configs, data);
38 /**
39 * Destroy the per-screen private information.
41 @@ -988,32 +959,8 @@ const __DRIdri2Extension driDRI2Extension = {
42 .createNewScreen2 = driCreateNewScreen2,
45 -const __DRIdri2Extension swkmsDRI2Extension = {
46 - .base = { __DRI_DRI2, 4 },
48 - .createNewScreen = swkmsCreateNewScreen,
49 - .createNewDrawable = driCreateNewDrawable,
50 - .createNewContext = driCreateNewContext,
51 - .getAPIMask = driGetAPIMask,
52 - .createNewContextForAPI = driCreateNewContextForAPI,
53 - .allocateBuffer = dri2AllocateBuffer,
54 - .releaseBuffer = dri2ReleaseBuffer,
55 - .createContextAttribs = driCreateContextAttribs,
56 - .createNewScreen2 = driCreateNewScreen2,
57 -};
59 #endif
61 -const __DRIswrastExtension driSWRastExtension = {
62 - .base = { __DRI_SWRAST, 4 },
64 - .createNewScreen = driSWRastCreateNewScreen,
65 - .createNewDrawable = driCreateNewDrawable,
66 - .createNewContextForAPI = driCreateNewContextForAPI,
67 - .createContextAttribs = driCreateContextAttribs,
68 - .createNewScreen2 = driSWRastCreateNewScreen2,
69 -};
71 const __DRI2configQueryExtension dri2ConfigQueryExtension = {
72 .base = { __DRI2_CONFIG_QUERY, 2 },