Skip to content

Commit

Permalink
Add FORCE_DISABLE_MTL_MEDIA_CCS registry key
Browse files Browse the repository at this point in the history
Default media driver is enable Media CCS, would
like to add new FORCE_DISABLE_MTL_MEDIA_CCS registry
key in environment variable to disable Media CCS.
This is allow user choose to disable MTL Media CCS if
needed.

Signed-off-by: Teng, Jin Chung <[email protected]>
Signed-off-by: Lim Siew Hoon <[email protected]>
  • Loading branch information
SiewHoon committed Nov 20, 2023
1 parent 4e2a85f commit 2be3d78
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions media_softlet/linux/Xe_M_plus/ddi/media_sku_wa_mtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ static bool InitMtlMediaSkuExt(struct GfxDeviceInfo *devInfo,
MEDIA_WR_SKU(skuTable, Ftr10bitDecMemoryCompression, 0);

MEDIA_WR_SKU(skuTable, FtrCCSNode, 1);
// get user CCS value from environment variable
char *CCS_Env = getenv("FORCE_DISABLE_INTEL_MEDIA_MTL_CCS");
if (CCS_Env != nullptr)
{
uint8_t user_ccs_env_value = (uint8_t)atoi(CCS_Env);
if (user_ccs_env_value == 1)
{
MEDIA_WR_SKU(skuTable, FtrCCSNode, 0);
}
}

MEDIA_WR_SKU(skuTable, FtrVpP010Output, 1);
MEDIA_WR_SKU(skuTable, FtrVp10BitSupport, 1);
Expand Down

0 comments on commit 2be3d78

Please sign in to comment.