Skip to content
Commit b72c90b0 authored by Boyuan Zhang's avatar Boyuan Zhang Committed by Juan A. Suarez Romero
Browse files

st/va: use provided sizes and coords for vlVaGetImage



vlVaGetImage should respect the width, height, and coordinates x and y that
passed in. Therefore, pipe_box should be created with the passed in values
instead of surface width/height.

v2: add input size check, return error when size out of bounds
v3: fix the size check for vaimage
v4: add size adjustment for x and y coordinates

Signed-off-by: default avatarBoyuan Zhang <boyuan.zhang@amd.com>
Cc: "18.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarLeo Liu <leo.liu@amd.com>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
(cherry picked from commit d76c2774)
parent 687ca5f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment