st/va: retrieve size from the temporary img variable
authorJulien Isorce <julien.isorce@gmail.com>
Tue, 15 Dec 2015 09:01:07 +0000 (09:01 +0000)
committerJulien Isorce <j.isorce@samsung.com>
Wed, 16 Dec 2015 14:12:31 +0000 (14:12 +0000)
"image" is not ready yet since it will be set at
the end of the function by: *image = *img;

Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Christian K<C3><B6>nig <christian.koenig@amd.com>
src/gallium/state_trackers/va/image.c

index ae07da857e121d24100989eb019d78307efcad5c..8fb3c210898be0cd12f14599ee910958d2e6be49 100644 (file)
@@ -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;