[Mesa-dev] [PATCH 25/43] dri/radeon: explicitly set __DRIimageExtension members
Ian Romanick
idr at freedesktop.org
Tue Feb 18 18:10:11 PST 2014
On 02/18/2014 05:20 PM, Emil Velikov wrote:
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> src/mesa/drivers/dri/radeon/radeon_screen.c | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
> index d6ec090..6de3d4f 100644
> --- a/src/mesa/drivers/dri/radeon/radeon_screen.c
> +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
> @@ -378,12 +378,13 @@ radeon_query_image(__DRIimage *image, int attrib, int *value)
> }
>
> static struct __DRIimageExtensionRec radeonImageExtension = {
This could also get the const treatment, right?
> - { __DRI_IMAGE, 1 },
> - radeon_create_image_from_name,
> - radeon_create_image_from_renderbuffer,
> - radeon_destroy_image,
> - radeon_create_image,
> - radeon_query_image
> + .base = { __DRI_IMAGE, 1 },
> +
> + .createImageFromName = radeon_create_image_from_name,
> + .createImageFromRenderbuffer = radeon_create_image_from_renderbuffer,
> + .destroyImage = radeon_destroy_image,
> + .createImage = radeon_create_image,
> + .queryImage = radeon_query_image
> };
>
> static int radeon_set_screen_flags(radeonScreenPtr screen, int device_id)
>
More information about the mesa-dev
mailing list