Skip to content

Commit

Permalink
[VP] add YUY2 width unalign plane definition for 2 plane l0 corruption
Browse files Browse the repository at this point in the history
add YUY2 width unalign plane definition for 2 plane l0 corruption, issue from UV plane.
  • Loading branch information
Alex1Zhang authored and intel-mediadev committed Sep 3, 2024
1 parent 88e60b4 commit ac5f0ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions media_common/agnostic/common/renderhal/renderhal.h
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ typedef enum _RENDERHAL_PLANE_DEFINITION
RENDERHAL_PLANES_G32R32F,
RENDERHAL_PLANES_NV12_2PLANES_COMBINED,
RENDERHAL_PLANES_P016_2PLANES_COMBINED,
RENDERHAL_PLANES_YUY2_2PLANES_WIDTH_UNALIGNED,

RENDERHAL_PLANES_DEFINITION_COUNT
} RENDERHAL_PLANE_DEFINITION, *PRENDERHAL_PLANE_DEFINITION;
Expand Down
9 changes: 8 additions & 1 deletion media_softlet/agnostic/common/renderhal/renderhal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,13 @@ extern const MHW_SURFACE_PLANES g_cRenderHal_SurfacePlanes[RENDERHAL_PLANES_DEFI
{MHW_U_PLANE, 2, 2, 1, 1, 2, 0, MHW_GFX3DSTATE_SURFACEFORMAT_R16G16_UNORM}
}
},
// RENDERHAL_PLANES_YUY2_2PLANES_WIDTH_UNALIGNED
{ 2,
{
{ MHW_Y_PLANE, 1, 1, 2, 2, 2, 0, MHW_GFX3DSTATE_SURFACEFORMAT_R8G8_UNORM },
{ MHW_U_PLANE, 2, 1, 1, 2, 1, 0, MHW_GFX3DSTATE_SURFACEFORMAT_R8G8B8A8_UNORM }
}
},
};

//!
Expand Down Expand Up @@ -4318,7 +4325,7 @@ MOS_STATUS RenderHal_GetPlaneDefinitionForCommonMessage(
else
{
//For reading, packed 422 formats use R8G8 for Y and A8R8G8B8 for UV
planeDefinition = RENDERHAL_PLANES_YUY2_2PLANES;
planeDefinition = RENDERHAL_PLANES_YUY2_2PLANES_WIDTH_UNALIGNED;
}
break;
case Format_Y210:
Expand Down

0 comments on commit ac5f0ff

Please sign in to comment.