[Mesa-dev] [PATCH 22/38] st/dri: explicitly set __DRIimageExtension members
Emil Velikov
emil.l.velikov at gmail.com
Wed Feb 12 17:17:48 PST 2014
While we're here use the typcast'ed name and constify.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/gallium/state_trackers/dri/drm/dri2.c | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index bccecbe..fc1f66f 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -993,18 +993,19 @@ dri2_destroy_image(__DRIimage *img)
FREE(img);
}
-static struct __DRIimageExtensionRec dri2ImageExtension = {
- { __DRI_IMAGE, 6 },
- dri2_create_image_from_name,
- dri2_create_image_from_renderbuffer,
- dri2_destroy_image,
- dri2_create_image,
- dri2_query_image,
- dri2_dup_image,
- dri2_validate_usage,
- dri2_from_names,
- dri2_from_planar,
- dri2_create_from_texture,
+static const __DRIimageExtension dri2ImageExtension = {
+ .base = { __DRI_IMAGE, 6 },
+
+ .createImageFromName = dri2_create_image_from_name,
+ .createImageFromRenderbuffer = dri2_create_image_from_renderbuffer,
+ .destroyImage = dri2_destroy_image,
+ .createImage = dri2_create_image,
+ .queryImage = dri2_query_image,
+ .dupImage = dri2_dup_image,
+ .validateUsage = dri2_validate_usage,
+ .createImageFromNames = dri2_from_names,
+ .fromPlanar = dri2_from_planar,
+ .createImageFromTexture = dri2_create_from_texture,
};
/*
--
1.8.5.4
More information about the mesa-dev
mailing list