Skip to content
Open
Show file tree
Hide file tree
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: 8 additions & 1 deletion media_driver/linux/common/ddi/media_libva_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,17 @@ VAStatus DdiMediaUtil_AllocateSurface(
gmmCustomParams.BaseAlignment = 4096;
gmmCustomParams.NoOfPlanes = mediaSurface->pSurfDesc->uiPlanes;
gmmCustomParams.CpTag = cpTag;

int32_t deviceId = mediaDrvCtx->iDeviceId;

switch (tileformat)
{
case I915_TILING_Y:
gmmCustomParams.Flags.Info.TiledY = true;
//DG2 pciid from kernel/include/drm/i915_pciids.h#696
if (deviceId >= 0x5690 && deviceId <= 0x56B3)
gmmCustomParams.Flags.Info.Tile4 = true;
else
gmmCustomParams.Flags.Info.TiledY = true;
gmmCustomParams.Flags.Gpu.MMC = false;
if (MEDIA_IS_SKU(&mediaDrvCtx->SkuTable, FtrE2ECompression) &&
(!MEDIA_IS_WA(&mediaDrvCtx->WaTable, WaDisableVPMmc) &&
Expand Down
9 changes: 8 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 @@ -326,10 +326,17 @@ VAStatus MediaLibvaUtilNext::GenerateGmmParamsForNoneCompressionExternalSurface(
gmmCustomParams.BaseAlignment = 4096;
gmmCustomParams.NoOfPlanes = mediaSurface->pSurfDesc->uiPlanes;
gmmCustomParams.CpTag = params.cpTag;

PDDI_MEDIA_CONTEXT mediaDrvCtx = mediaSurface->pMediaCtx;
int32_t deviceId = mediaDrvCtx->iDeviceId;
switch (params.tileFormat)
{
case I915_TILING_Y:
gmmCustomParams.Flags.Info.TiledY = true;
//DG2 pciid from kernel/include/drm/i915_pciids.h#696
if (deviceId >= 0x5690 && deviceId <= 0x56B3)
gmmCustomParams.Flags.Info.Tile4 = true;
else
gmmCustomParams.Flags.Info.TiledY = true;
break;
case I915_TILING_X:
gmmCustomParams.Flags.Info.TiledX = true;
Expand Down