From 0341623f39c9285be57d26722d1a1da4ebbc3206 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 25 Jul 2024 08:30:34 -0400 Subject: [PATCH] dri: delete __DRI_COPY_SUB_BUFFER bye-bye Reviewed-by: Adam Jackson Part-of: --- src/gallium/frontends/dri/drisw.c | 8 -------- src/gallium/include/mesa_interface.h | 13 ------------- 2 files changed, 21 deletions(-) diff --git a/src/gallium/frontends/dri/drisw.c b/src/gallium/frontends/dri/drisw.c index b49ae793c8b..eaf87ab7d78 100644 --- a/src/gallium/frontends/dri/drisw.c +++ b/src/gallium/frontends/dri/drisw.c @@ -640,13 +640,6 @@ driswCopySubBuffer(__DRIdrawable *pdp, int x, int y, int w, int h) drisw_copy_sub_buffer(drawable, x, y, w, h); } -/* for swrast only */ -const __DRIcopySubBufferExtension driSWCopySubBufferExtension = { - .base = { __DRI_COPY_SUB_BUFFER, 1 }, - - .copySubBuffer = driswCopySubBuffer, -}; - static const struct __DRImesaCoreExtensionRec mesaCoreExtension = { .base = { __DRI_MESA, 2 }, .version_string = MESA_INTERFACE_VERSION_STRING, @@ -660,7 +653,6 @@ const __DRIextension *galliumsw_driver_extensions[] = { &driCoreExtension.base, &mesaCoreExtension.base, &driSWRastExtension.base, - &driSWCopySubBufferExtension.base, &gallium_config_options.base, NULL }; diff --git a/src/gallium/include/mesa_interface.h b/src/gallium/include/mesa_interface.h index feb8579c275..926d78db5fe 100644 --- a/src/gallium/include/mesa_interface.h +++ b/src/gallium/include/mesa_interface.h @@ -49,7 +49,6 @@ typedef struct __DRIversionRec __DRIversion; typedef struct __DRIcoreExtensionRec __DRIcoreExtension; typedef struct __DRIextensionRec __DRIextension; -typedef struct __DRIcopySubBufferExtensionRec __DRIcopySubBufferExtension; typedef struct __DRIswapControlExtensionRec __DRIswapControlExtension; typedef struct __DRIframeTrackingExtensionRec __DRIframeTrackingExtension; typedef struct __DRImediaStreamCounterExtensionRec __DRImediaStreamCounterExtension; @@ -111,18 +110,6 @@ struct __DRIextensionRec { #define __DRI_READ_DRAWABLE "DRI_ReadDrawable" #define __DRI_READ_DRAWABLE_VERSION 1 -/** - * Used by drivers that implement the GLX_MESA_copy_sub_buffer extension. - * - * Used by the X server in swrast mode. - */ -#define __DRI_COPY_SUB_BUFFER "DRI_CopySubBuffer" -#define __DRI_COPY_SUB_BUFFER_VERSION 1 -struct __DRIcopySubBufferExtensionRec { - __DRIextension base; - void (*copySubBuffer)(__DRIdrawable *drawable, int x, int y, int w, int h); -}; - /** * Used by drivers that implement the GLX_SGI_swap_control or * GLX_MESA_swap_control extension.