summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/image.c
diff options
context:
space:
mode:
authorJulien Isorce <[email protected]>2015-12-15 09:01:07 +0000
committerJulien Isorce <[email protected]>2015-12-16 14:12:31 +0000
commit89eb342defb294400643759f2deb456a33b95e8f (patch)
tree382a58b85131dacd760b0eb6b78cc6a0960115cc /src/gallium/state_trackers/va/image.c
parent8e195a62514800b53f8b8766d6c254a05de343bb (diff)
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 <[email protected]> Reviewed-by: Christian K<C3><B6>nig <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/image.c')
-rw-r--r--src/gallium/state_trackers/va/image.c2
1 files changed, 1 insertions, 1 deletions
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;