Skip to content

Commit

Permalink
[Media Common] [VP] Update Linux Settings for compression on Xe2+
Browse files Browse the repository at this point in the history
Update Linux Settings for compression on Xe2+, missed FtrXe2Compression in system info flags
Guangyao-Bai authored and intel-mediadev committed Dec 12, 2024
1 parent a36d521 commit 9b35e3f
Showing 4 changed files with 7 additions and 12 deletions.
8 changes: 2 additions & 6 deletions media_softlet/linux/xe2_hpm/ddi/media_sku_wa_bmg.cpp
Original file line number Diff line number Diff line change
@@ -196,6 +196,7 @@ static bool InitBmgMediaSkuExt(struct GfxDeviceInfo *devInfo,
MEDIA_WR_SKU(skuTable, FtrWithSlimVdbox, 0);

MEDIA_WR_SKU(skuTable, FtrE2ECompression, 1);
MEDIA_WR_SKU(skuTable, FtrXe2Compression , 1);
MEDIA_WR_SKU(skuTable, FtrHDR, 1);
MEDIA_WR_SKU(skuTable, FtrDisableRenderTargetWidthAdjust, 1);

@@ -210,6 +211,7 @@ static bool InitBmgMediaSkuExt(struct GfxDeviceInfo *devInfo,
if (userFeatureData.bData)
{
MEDIA_WR_SKU(skuTable, FtrE2ECompression, 0);
MEDIA_WR_SKU(skuTable, FtrXe2Compression , 0);
}

// Create uncompressible surface by default
@@ -235,14 +237,8 @@ static bool InitBmgMediaSkuExt(struct GfxDeviceInfo *devInfo,
MEDIA_WR_SKU(skuTable, FtrUseSwSwizzling, 0);
MEDIA_WR_SKU(skuTable, FtrMemoryRemapSupport, 1);


MEDIA_WR_SKU(skuTable, FtrAV1VLDLSTDecoding, 1);
MEDIA_WR_SKU(skuTable, FtrMediaIPSeparation , 1);
MEDIA_WR_SKU(skuTable, FtrXe2Compression , 1);
if (!compressibleSurfaceEnable)
{
MEDIA_WR_SKU(skuTable, FtrXe2Compression , 0);
}

return true;
}
2 changes: 2 additions & 0 deletions media_softlet/linux/xe2_hpm/ddi/media_sysinfo_bmg.cpp
Original file line number Diff line number Diff line change
@@ -109,6 +109,7 @@ static bool InitBmgShadowSku(struct GfxDeviceInfo *devInfo,

bool disableMMC = false;
skuTable->FtrE2ECompression = 1;
skuTable->FtrXe2Compression = 1;
// Disable MMC for all components if set reg key
MOS_USER_FEATURE_VALUE_DATA userFeatureData;
MOS_ZeroMemory(&userFeatureData, sizeof(userFeatureData));
@@ -125,6 +126,7 @@ static bool InitBmgShadowSku(struct GfxDeviceInfo *devInfo,
if (disableMMC)
{
skuTable->FtrE2ECompression = 0;
skuTable->FtrXe2Compression = 0;
}

skuTable->FtrLinearCCS = 1;
8 changes: 2 additions & 6 deletions media_softlet/linux/xe2_lpm/ddi/media_sku_wa_lnl.cpp
Original file line number Diff line number Diff line change
@@ -199,6 +199,7 @@ static bool InitLnlMediaSkuExt(struct GfxDeviceInfo *devInfo,
MEDIA_WR_SKU(skuTable, FtrWithSlimVdbox, 0);

MEDIA_WR_SKU(skuTable, FtrE2ECompression, 1);
MEDIA_WR_SKU(skuTable, FtrXe2Compression , 1);
MEDIA_WR_SKU(skuTable, FtrHDR, 1);
MEDIA_WR_SKU(skuTable, FtrDisableRenderTargetWidthAdjust, 1);

@@ -213,6 +214,7 @@ static bool InitLnlMediaSkuExt(struct GfxDeviceInfo *devInfo,
if (userFeatureData.bData)
{
MEDIA_WR_SKU(skuTable, FtrE2ECompression, 0);
MEDIA_WR_SKU(skuTable, FtrXe2Compression , 0);
}

// Create uncompressible surface by default
@@ -239,14 +241,8 @@ static bool InitLnlMediaSkuExt(struct GfxDeviceInfo *devInfo,
MEDIA_WR_SKU(skuTable, FtrUseSwSwizzling, 0);
MEDIA_WR_SKU(skuTable, FtrMemoryRemapSupport, 1);


MEDIA_WR_SKU(skuTable, FtrAV1VLDLSTDecoding, 1);
MEDIA_WR_SKU(skuTable, FtrMediaIPSeparation , 1);
MEDIA_WR_SKU(skuTable, FtrXe2Compression , 1);
if (!compressibleSurfaceEnable)
{
MEDIA_WR_SKU(skuTable, FtrXe2Compression , 0);
}

return true;
}
1 change: 1 addition & 0 deletions media_softlet/linux/xe2_lpm/ddi/media_sysinfo_lnl.cpp
Original file line number Diff line number Diff line change
@@ -109,6 +109,7 @@ static bool InitLnlShadowSku(struct GfxDeviceInfo *devInfo,

bool disableMMC = false;
skuTable->FtrE2ECompression = 1;
skuTable->FtrXe2Compression = 1;
// Disable MMC for all components if set reg key
MOS_USER_FEATURE_VALUE_DATA userFeatureData;
MOS_ZeroMemory(&userFeatureData, sizeof(userFeatureData));

0 comments on commit 9b35e3f

Please sign in to comment.