Skip to content

Commit

Permalink
media: don't advertise AV1 decoding if the platform doesn't support it
Browse files Browse the repository at this point in the history
Otherwise user will be misled by the output of vainfo on Linux

Change-Id: I039fdea492db884a53d24ae8966c619c714e7a96
  • Loading branch information
xhaihao authored and intel-mediadev committed Aug 2, 2020
1 parent d82d012 commit 8aa1d74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions media_driver/linux/gen12/ddi/media_sku_wa_g12.cpp
Expand Up @@ -75,6 +75,12 @@ static bool InitTglMediaSku(struct GfxDeviceInfo *devInfo,
{
LinuxCodecInfo *codecInfo = &tglCodecInfo;

if (devInfo->productFamily == IGFX_TIGERLAKE_LP &&
drvInfo->devRev == 0) {
codecInfo->adv0Decoding = 0;
codecInfo->adv1Decoding = 0;
}

MEDIA_WR_SKU(skuTable, FtrAVCVLDLongDecoding, codecInfo->avcDecoding);
MEDIA_WR_SKU(skuTable, FtrMPEG2VLDDecoding, codecInfo->mpeg2Decoding);
MEDIA_WR_SKU(skuTable, FtrIntelVP8VLDDecoding, codecInfo->vp8Decoding);
Expand Down

0 comments on commit 8aa1d74

Please sign in to comment.