From: Julien Isorce Date: Tue, 15 Dec 2015 09:01:07 +0000 (+0000) Subject: st/va: retrieve size from the temporary img variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89eb342defb294400643759f2deb456a33b95e8f;p=mesa.git 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 --- 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;