diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2018-01-22 11:03:22 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-01-31 08:18:20 +0800 |
commit | 89cd79d27de9b9d79a3ba622ad293bc88249a596 (patch) | |
tree | cc7032417f89cf8a82c87f0eeb24ab2ea25ef479 | |
parent | 5e707b08322d483fe9b47a0dea7ff23ddcc133ea (diff) | |
download | libva-intel-driver-89cd79d27de9b9d79a3ba622ad293bc88249a596.tar.gz |
Return surface width/height in pixels
width/height in VADRMPRIMESurfaceDescriptor specifies the
surface width/height in pixels in VA-API, so we should set
the corresponding variables in pixels in the driver
This fixes https://github.com/01org/intel-vaapi-driver/issues/342,
thanks pkerling for the investigation and proposed fix for this issue.
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r-- | src/i965_drv_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 53318da9..e6ec4e7e 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -6826,8 +6826,8 @@ i965_ExportSurfaceHandle(VADriverContextP ctx, VASurfaceID surface_id, desc = descriptor; desc->fourcc = obj_surface->fourcc; - desc->width = obj_surface->width; - desc->height = obj_surface->height; + desc->width = obj_surface->orig_width; + desc->height = obj_surface->orig_height; desc->num_objects = 1; desc->objects[0].fd = fd; |