Mesa (master): drivers/dri: explicitly set __DRI2flushExtension members
Emil Velikov
evelikov at kemper.freedesktop.org
Sun Feb 23 19:15:26 UTC 2014
Module: Mesa
Branch: master
Commit: 73b35b913e62c8d3f7d670fce272adf14e3f73f4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=73b35b913e62c8d3f7d670fce272adf14e3f73f4
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Wed Feb 12 18:21:46 2014 +0000
drivers/dri: explicitly set __DRI2flushExtension members
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>y
---
src/mesa/drivers/dri/nouveau/nouveau_screen.c | 7 ++++---
src/mesa/drivers/dri/radeon/radeon_screen.c | 7 ++++---
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
index a381064..9929056 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_screen.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
@@ -227,9 +227,10 @@ nouveau_drawable_flush(__DRIdrawable *draw)
}
static const struct __DRI2flushExtensionRec nouveau_flush_extension = {
- { __DRI2_FLUSH, 3 },
- nouveau_drawable_flush,
- dri2InvalidateDrawable,
+ .base = { __DRI2_FLUSH, 3 },
+
+ .flush = nouveau_drawable_flush,
+ .invalidate = dri2InvalidateDrawable,
};
static const struct __DRItexBufferExtensionRec nouveau_texbuffer_extension = {
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
index 57e866e..90251db 100644
--- a/src/mesa/drivers/dri/radeon/radeon_screen.c
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
@@ -192,9 +192,10 @@ radeonDRI2Flush(__DRIdrawable *drawable)
}
static const struct __DRI2flushExtensionRec radeonFlushExtension = {
- { __DRI2_FLUSH, 3 },
- radeonDRI2Flush,
- dri2InvalidateDrawable,
+ .base = { __DRI2_FLUSH, 3 },
+
+ .flush = radeonDRI2Flush,
+ .invalidate = dri2InvalidateDrawable,
};
static __DRIimage *
More information about the mesa-commit
mailing list