diff options
Diffstat (limited to 'recipes-multimedia/libva')
-rw-r--r-- | recipes-multimedia/libva/files/0001-Encode-fix-fwdRefs-array-out-of-bound-issue.patch | 35 | ||||
-rw-r--r-- | recipes-multimedia/libva/intel-media-driver_23.1.6.bb | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/recipes-multimedia/libva/files/0001-Encode-fix-fwdRefs-array-out-of-bound-issue.patch b/recipes-multimedia/libva/files/0001-Encode-fix-fwdRefs-array-out-of-bound-issue.patch new file mode 100644 index 00000000..7367808d --- /dev/null +++ b/recipes-multimedia/libva/files/0001-Encode-fix-fwdRefs-array-out-of-bound-issue.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From e8bb025cd56c269adf3ffdc3dda404505974f676 Mon Sep 17 00:00:00 2001 | ||
2 | From: bai-isaac <isaac.bai@intel.com> | ||
3 | Date: Mon, 12 Jun 2023 12:44:29 +0800 | ||
4 | Subject: [PATCH] [Encode] fix fwdRefs array out of bound issue | ||
5 | |||
6 | fix fwdRefs array out of bound issue. | ||
7 | |||
8 | Upstream-Status: Backport [https://github.com/intel/media-driver/commit/d795297127488b328f1cc260cf5da66debf95b99] | ||
9 | Expect it to be removed once move to intel-media-23.2.4 or above | ||
10 | |||
11 | Signed-off-by: Ch'ng, Seng Guan <seng.guan.chng@intel.com> | ||
12 | --- | ||
13 | media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_vdenc_impl.h | 3 ++- | ||
14 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_vdenc_impl.h b/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_vdenc_impl.h | ||
17 | index 3b79f4886..85a5a4127 100644 | ||
18 | --- a/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_vdenc_impl.h | ||
19 | +++ b/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_vdenc_impl.h | ||
20 | @@ -649,10 +649,11 @@ protected: | ||
21 | &resourceParams)); | ||
22 | } | ||
23 | |||
24 | + // SCC will use BwdRef0 as extra slot to store IBC if max fwd ref num is 3. | ||
25 | typename cmd_t::VDENC_Reference_Picture_CMD *fwdRefs[] = | ||
26 | {&cmd.FwdRef0, &cmd.FwdRef1, &cmd.FwdRef2, &cmd.BwdRef0}; | ||
27 | uint32_t fwdRefsDwLoaction[] = | ||
28 | - {_MHW_CMD_DW_LOCATION(FwdRef0), _MHW_CMD_DW_LOCATION(FwdRef1), _MHW_CMD_DW_LOCATION(FwdRef2)}; | ||
29 | + {_MHW_CMD_DW_LOCATION(FwdRef0), _MHW_CMD_DW_LOCATION(FwdRef1), _MHW_CMD_DW_LOCATION(FwdRef2), _MHW_CMD_DW_LOCATION(BwdRef0)}; | ||
30 | |||
31 | typename cmd_t::VDENC_Down_Scaled_Reference_Picture_CMD *fwdRefsDsStage1[] = | ||
32 | {&cmd.DsFwdRef0, &cmd.DsFwdRef1}; | ||
33 | -- | ||
34 | 2.40.1 | ||
35 | |||
diff --git a/recipes-multimedia/libva/intel-media-driver_23.1.6.bb b/recipes-multimedia/libva/intel-media-driver_23.1.6.bb index 88b06e77..1946fb1f 100644 --- a/recipes-multimedia/libva/intel-media-driver_23.1.6.bb +++ b/recipes-multimedia/libva/intel-media-driver_23.1.6.bb | |||
@@ -20,6 +20,7 @@ DEPENDS += "libva gmmlib" | |||
20 | 20 | ||
21 | SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;nobranch=1 \ | 21 | SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;nobranch=1 \ |
22 | file://fd67cc3fbd3a362297afc7cc8d75560df62708de.patch \ | 22 | file://fd67cc3fbd3a362297afc7cc8d75560df62708de.patch \ |
23 | file://0001-Encode-fix-fwdRefs-array-out-of-bound-issue.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | SRCREV = "8589406d4e7f97c6de55862af775d67d5dd7cd28" | 26 | SRCREV = "8589406d4e7f97c6de55862af775d67d5dd7cd28" |