mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-3b05ebaa625428ac3590a7ba1848a6234a572db4 / contrib / dri_util.c.patch
blob961de1f4de2776f02e182f5f8d40902978dc70ad
1 diff --git a/src/gallium/frontends/dri/dri_util.c b/src/gallium/frontends/dri/dri_util.c
2 index fc84abe16b8..35d54621988 100644
3 --- a/src/gallium/frontends/dri/dri_util.c
4 +++ b/src/gallium/frontends/dri/dri_util.c
5 @@ -182,35 +182,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 @@ -899,33 +870,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 - .queryBufferAge = driSWRastQueryBufferAge,
70 -};
72 const __DRI2configQueryExtension dri2ConfigQueryExtension = {
73 .base = { __DRI2_CONFIG_QUERY, 2 },