Skip to content

Commit

Permalink
Force ARGB surface to tile4 for ACM
Browse files Browse the repository at this point in the history
upstream-status: submitted
intel#1728

Signed-off-by: Soon, Thean Siew <[email protected]>
Signed-off-by: Lim Siew Hoon <[email protected]>
  • Loading branch information
SiewHoon authored and vcheah committed Dec 7, 2023
1 parent c0757d2 commit 3ddd203
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions media_driver/linux/common/ddi/media_libva_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ VAStatus DdiMediaUtil_AllocateSurface(
gmmCustomParams.Flags.Gpu.UnifiedAuxSurface = 0;
}
}

break;
case TILING_X:
gmmCustomParams.Flags.Info.TiledX = true;
Expand Down Expand Up @@ -685,6 +686,15 @@ VAStatus DdiMediaUtil_AllocateSurface(
}
}
}
// There's no VAAPI interface for modifier query yet. As a workaround, always allocate
// RGB surface as tile4.
if ((format == Media_Format_A8R8G8B8 ||
format == Media_Format_B10G10R10A2 |
format == Media_Format_A8B8G8R8 ||
format == Media_Format_X8R8G8B8) && !MEDIA_IS_SKU(&mediaDrvCtx->SkuTable, FtrTileY))
{
gmmParams.Flags.Info.Tile4 = true;
}
break;
case TILING_X:
gmmParams.Flags.Info.TiledX = true;
Expand Down

0 comments on commit 3ddd203

Please sign in to comment.