From 89eb342defb294400643759f2deb456a33b95e8f Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Tue, 15 Dec 2015 09:01:07 +0000 Subject: [PATCH] st/va: retrieve size from the temporary img variable "image" is not ready yet since it will be set at the end of the function by: *image = *img; Signed-off-by: Julien Isorce Reviewed-by: Christian Knig --- src/gallium/state_trackers/va/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/image.c b/src/gallium/state_trackers/va/image.c index ae07da857e1..8fb3c210898 100644 --- a/src/gallium/state_trackers/va/image.c +++ b/src/gallium/state_trackers/va/image.c @@ -264,7 +264,7 @@ vlVaDeriveImage(VADriverContextP ctx, VASurfaceID surface, VAImage *image) img->image_id = handle_table_add(drv->htab, img); img_buf->type = VAImageBufferType; - img_buf->size = image->data_size; + img_buf->size = img->data_size; img_buf->num_elements = 1; img_buf->derived_surface.fence = surf->fence; -- 2.30.2