Skip to content

Commit

Permalink
[Media Common] [VP] XRGB force to tile4
Browse files Browse the repository at this point in the history
Force BGRX surfaces to tile4 because glimagesink plugins backend support by 3D mesa driver is reporting back the XR24 (BGRx) for dmabuf modifier case is 0x0100000000000009
  • Loading branch information
MicroYY authored and intel-mediadev committed Jul 27, 2023
1 parent ac423c3 commit b6d0384
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion media_softlet/linux/common/ddi/media_libva_util_next.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,10 @@ VAStatus MediaLibvaUtilNext::GenerateGmmParamsForInternalSurface(
}
// For ARGB surface, always allocate it as tile4.
// This is a WA for ExportSurfaceHandle because modifer for tile64 isn't defined.
if ((params.format == Media_Format_A8R8G8B8 || params.format == Media_Format_B10G10R10A2 || params.format == Media_Format_A8B8G8R8) && !MEDIA_IS_SKU(&mediaDrvCtx->SkuTable, FtrTileY))
if ((params.format == Media_Format_A8R8G8B8 ||
params.format == Media_Format_B10G10R10A2 ||
params.format == Media_Format_A8B8G8R8 ||
params.format == Media_Format_X8R8G8B8) && !MEDIA_IS_SKU(&mediaDrvCtx->SkuTable, FtrTileY))
{
gmmParams.Flags.Info.Tile4 = true;
}
Expand Down

0 comments on commit b6d0384

Please sign in to comment.