[Mesa-dev] [PATCH 03/27] dri: Drop driCopySubBufferExtension
Kristian Høgsberg
krh at bitplanet.net
Fri Oct 28 15:11:33 PDT 2011
Another DRI1-only extension.
---
src/gallium/state_trackers/dri/drm/dri2.c | 2 --
src/mesa/drivers/dri/common/dri_util.c | 19 -------------------
src/mesa/drivers/dri/common/dri_util.h | 1 -
src/mesa/drivers/dri/radeon/radeon_screen.c | 1 -
4 files changed, 0 insertions(+), 23 deletions(-)
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index 0c6f165..2194856 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -612,7 +612,6 @@ static struct __DRIimageExtensionRec dri2ImageExtension = {
*/
static const __DRIextension *dri_screen_extensions[] = {
- &driCopySubBufferExtension.base,
&driSwapControlExtension.base,
&driMediaStreamCounterExtension.base,
&driTexBufferExtension.base,
@@ -623,7 +622,6 @@ static const __DRIextension *dri_screen_extensions[] = {
};
static const __DRIextension *dri_screen_extensions_throttle[] = {
- &driCopySubBufferExtension.base,
&driSwapControlExtension.base,
&driMediaStreamCounterExtension.base,
&driTexBufferExtension.base,
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 90eba67..6e7c1ed 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -360,25 +360,6 @@ const __DRImediaStreamCounterExtension driMediaStreamCounterExtension = {
};
-static void driCopySubBuffer(__DRIdrawable *dPriv,
- int x, int y, int w, int h)
-{
- drm_clip_rect_t rect;
-
- rect.x1 = x;
- rect.y1 = dPriv->h - y - h;
- rect.x2 = x + w;
- rect.y2 = rect.y1 + h;
- driReportDamage(dPriv, &rect, 1);
-
- dPriv->driScreenPriv->DriverAPI.CopySubBuffer(dPriv, x, y, w, h);
-}
-
-const __DRIcopySubBufferExtension driCopySubBufferExtension = {
- { __DRI_COPY_SUB_BUFFER, __DRI_COPY_SUB_BUFFER_VERSION },
- driCopySubBuffer
-};
-
static void driSetSwapInterval(__DRIdrawable *dPriv, unsigned int interval)
{
dPriv->swap_interval = interval;
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h
index 2db8c97..292cbef 100644
--- a/src/mesa/drivers/dri/common/dri_util.h
+++ b/src/mesa/drivers/dri/common/dri_util.h
@@ -65,7 +65,6 @@ typedef struct __DRIswapInfoRec __DRIswapInfo;
*/
extern const __DRIcoreExtension driCoreExtension;
extern const __DRIdri2Extension driDRI2Extension;
-extern const __DRIcopySubBufferExtension driCopySubBufferExtension;
extern const __DRIswapControlExtension driSwapControlExtension;
extern const __DRImediaStreamCounterExtension driMediaStreamCounterExtension;
extern const __DRI2configQueryExtension dri2ConfigQueryExtension;
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
index 167091b..fd0aea7 100644
--- a/src/mesa/drivers/dri/radeon/radeon_screen.c
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
@@ -1269,7 +1269,6 @@ radeonCreateScreen2(__DRIscreen *sPriv)
}
i = 0;
- screen->extensions[i++] = &driCopySubBufferExtension.base;
screen->extensions[i++] = &dri2ConfigQueryExtension.base;
if ( screen->irq != 0 ) {
--
1.7.7
More information about the mesa-dev
mailing list