Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Media Common] Force ARGB surface to tile4 for ACM #1728

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions media_driver/linux/common/ddi/media_libva_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,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