From c1afe752f4abc94799d1a00162dbef3eccb11d54 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Thu, 17 Oct 2024 15:58:03 +0800 Subject: [PATCH] [Decode] Do not report AV1d support in free kernel build on TGLx and DG2 Signed-off-by: nyanmisaka --- media_driver/linux/Xe_M/ddi/media_sku_wa_xe.cpp | 12 ++++++------ media_driver/linux/gen12/ddi/media_sku_wa_g12.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/media_driver/linux/Xe_M/ddi/media_sku_wa_xe.cpp b/media_driver/linux/Xe_M/ddi/media_sku_wa_xe.cpp index 9198443ecde..839e6757244 100644 --- a/media_driver/linux/Xe_M/ddi/media_sku_wa_xe.cpp +++ b/media_driver/linux/Xe_M/ddi/media_sku_wa_xe.cpp @@ -71,8 +71,8 @@ static struct LinuxCodecInfo XehpSdvCodecInfo = .vp8Encoding = 0, .hevcVdenc = 0, .vp9Vdenc = 0, - .adv0Decoding = 1, - .adv1Decoding = 1, + .adv0Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0), + .adv1Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0), }; static struct LinuxCodecInfo Dg2CodecInfo = @@ -96,8 +96,8 @@ static struct LinuxCodecInfo Dg2CodecInfo = .vp8Encoding = 0, .hevcVdenc = 1, .vp9Vdenc = 1, - .adv0Decoding = 1, - .adv1Decoding = 1, + .adv0Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0), + .adv1Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0), }; static struct LinuxCodecInfo PvcCodecInfo = @@ -131,8 +131,8 @@ static struct LinuxCodecInfo PvcCodecInfo = .hevcVdenc = 0, .vp9Vdenc = 0, #endif - .adv0Decoding = 1, - .adv1Decoding = 1, + .adv0Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0), + .adv1Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0), }; static bool InitTglMediaSkuExt(struct GfxDeviceInfo *devInfo, diff --git a/media_driver/linux/gen12/ddi/media_sku_wa_g12.cpp b/media_driver/linux/gen12/ddi/media_sku_wa_g12.cpp index 1f6abf643d5..0308eb5d3ba 100644 --- a/media_driver/linux/gen12/ddi/media_sku_wa_g12.cpp +++ b/media_driver/linux/gen12/ddi/media_sku_wa_g12.cpp @@ -59,8 +59,8 @@ static struct LinuxCodecInfo tglCodecInfo = .vp8Encoding = 0, .hevcVdenc = 1, .vp9Vdenc = 1, - .adv0Decoding = 1, - .adv1Decoding = 1, + .adv0Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0), + .adv1Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0), }; static bool InitTglMediaSku(struct GfxDeviceInfo *devInfo,