Skip to content

Commit

Permalink
UYVY format should use Y tiling.
Browse files Browse the repository at this point in the history
Fixes #616.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
  • Loading branch information
wangyan42164 authored and intel-mediadev committed Jun 26, 2019
1 parent f6eca7f commit e65ab91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media_driver/linux/common/ddi/media_libva_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ VAStatus DdiMediaUtil_AllocateSurface(
break;
}
case Media_Format_RGBP:
case Media_Format_UYVY:
case Media_Format_A8R8G8B8:
if (VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER != mediaSurface->surfaceUsageHint &&
!(mediaSurface->surfaceUsageHint & VA_SURFACE_ATTRIB_USAGE_HINT_DECODER))
Expand Down Expand Up @@ -225,6 +224,7 @@ VAStatus DdiMediaUtil_AllocateSurface(
case Media_Format_Y16U:
case Media_Format_VYUY:
case Media_Format_YVYU:
case Media_Format_UYVY:
if (VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER != mediaSurface->surfaceUsageHint)
{
#if UFO_GRALLOC_NEW_FORMAT
Expand Down

0 comments on commit e65ab91

Please sign in to comment.