From: Emil Velikov Date: Wed, 12 Feb 2014 18:21:46 +0000 (+0000) Subject: drivers/dri: explicitly set __DRI2flushExtension members X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73b35b913e62c8d3f7d670fce272adf14e3f73f4;p=mesa.git drivers/dri: explicitly set __DRI2flushExtension members Signed-off-by: Emil Velikov Reviewed-by: Ian Romanick y --- diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c index a3810649234..99290561e37 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 57e866ebb24..90251db3e64 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 *