libva-intel-media-driver: Uprev to 20.1.1.
This CL uprevs the iHD driver to the upstream release.
cros_portage_upgrade --unstable-ok is used to perform a pristine upgrade
on portage-stable and then the x11-libs/libva-intel-media-driver folder
is copied to chromiumos-overlay.
After that, the following changes are made:
- We remove 9999 stuff from the ebuild because we don't expect to use
cros_workon with this package.
- The dependency on >=x11-libs/libpciaccess-0.13.1-r1 is replaced by
what we have on ToT (>=x11-libs/libpciaccess-0.10). That's because we
don't have that version on CrOS yet. Upstream iHD doesn't specify a
required version of libpciaccess. It seems to be an unnecessary
dependency: there is a PR upstream to remove it [1].
- Carried over -DCMAKE_DISABLE_FIND_PACKAGE_X11=TRUE from CrOS ToT in
order to avoid "va/va_dricommon.h: No such file or directory".
- Removed MEDIA_BUILD_FATAL_WARNINGS=OFF because we shouldn't have
warnings.
- Disabled CMRT. This will be re-enabled in a follow-up for
bisectability.
See the diff since PS1 for these changes.
As for the patch files: they're all deleted in this CL but will be added
as needed by individual follow-up CLs to allow for bisectability.
However, their fates are summarized below for documentation:
- 0001-Encoder-VP8-GEN9-GEN10-GEN11-Ensure-forced_lf_adjust.patch:
This must be kept because it's upstream starting on
intel-media-20.2.pre1 [2].
- 0002-Disable-IPC-usage.patch:
This must be kept because it's a Chrome-specific workaround. There's a
bug upstream [3] to make the naming more meaningful, but it's still
open.
- 0003-Partially-revert-VP-Fix-aux-mapping-issue.patch:
It's unclear if this is still needed, but AFAICT, it's a
gen12-specific temporary workaround and it hasn't been addressed
upstream. I'm not including it until we verify that it's still needed.
- 0004-Fix-Clang-Warning.patch
This is no longer needed because it has been fixed upstream and it's
included on intel-media-20.1 [4].
- 0005-use-gmmlib-calculate-the-NV12-surface-offset.patch:
This is no longer needed because it has been fixed upstream and it's
included on intel-media-20.1 [5].
- 0006-Ignore-the-private-VP9-status-buffer.patch:
This is no longer needed because it's included upstream on
intel-media-20.1.1 [6].
- 0007-add-SW-WA-to-diable-calculation-of-the-UV-offset-by-gmmlib-on-TGL.patch:
This is no longer needed because it has been fixed upstream and it's
included on intel-media-20.1 [7].
- 0008-VP-Explicitly-initialize-maxSrcRect-of-VpHalRenderer.patch:
This must be kept because it's upstream starting on
intel-media-20.2.pre2 [8]. When I tried to cherry-pick [8], I got a
merge conflict for vphal_renderer.h. As far as I could tell, this was
because the patch's context depends on SetRenderGpuContext(), which
doesn't exist on 20.1.1. Thus, the conflict was trivial to resolve.
After resolving, the resulting .patch is essentially identical to the
one on CrOS ToT (modulo line numbers).
- 0009-VP-fix-crash-in-vp8-playback.patch:
This must be kept because it's upstream starting on
intel-media-20.2.pre3 [9].
- 0010-VP-fix-illegal-access-and-mem-leak.patch:
This is no longer needed because it's included upstream on
intel-media-20.1.1 [10].
- 0011-Media-Common-Fix-tiling-issue.patch:
This is no longer needed because it has been fixed upstream and it's
included on intel-media-20.1 [11].
- 0012-Media-Common-Modify-the-default-tile-type.patch:
This is no longer needed because it has been fixed upstream and it's
included on intel-media-20.1 [12].
- 0013-Add-external-surface-support.patch:
This is no longer needed because it has been fixed upstream and it's
included on intel-media-20.1 [13]. The patch in [13] looks
significantly different than the one on CrOS ToT, but that's likely
because the latter was a backport to iHD 19.4.1.
- 0014-VP-Fix-memory-corruption-due-to-improper-typecast.patch:
This must be kept because it's upstream starting on
intel-media-20.2.pre1 [14].
- 0015-Support-up-to-8Kx8K-VP9-encoding-on-GEN12.patch:
This is no longer needed because it's included upstream on
intel-media-20.1.1 [15].
- 0016-Decoder-VP9-GEN-9-10-11-12-Fix-the-GPU-hang-due-to-w.patch:
This must be kept because it's upstream starting on
intel-media-20.2.pre4 [16].
- 0017-Decoder-VP9-GEN9-Disable-HPR-VP9-mode-switch-to-avoi.patch:
This must be kept: it hasn't landed upstream but the merge seems
imminent [17].
[1] https://github.com/intel/media-driver/pull/991
[2] https://github.com/intel/media-driver/commit/2452327d78d2513595274c0aaa93d57a1cc83c8c
[3] https://github.com/intel/media-driver/issues/854
[4] https://github.com/intel/media-driver/commit/6529865b64363e369e41b2a7f79a6af6cffc5427
[5] https://github.com/intel/media-driver/commit/fe4667a262e63df39eab070943cff58b886d8837
[6] https://github.com/intel/media-driver/commit/a2ca915e021fbd272e61cb29042fbf8b8107cce5
[7] https://github.com/intel/media-driver/commit/a9897e334a403a7ccbe704da6fd56ba4ed9ee912
[8] https://github.com/intel/media-driver/commit/07a818120af884fefb6a0a4e5894a150aa5447cb
[9] https://github.com/intel/media-driver/commit/26b386f708ada4e914789e1b1855c5d4135bdd81
[10] https://github.com/intel/media-driver/commit/9b9dd30ae96196bb13ebc06a95f4c67fcf65e394
[11] https://github.com/intel/media-driver/commit/3a53032ebc5eb2c234a6678152590c5f4ca7757f
[12] https://github.com/intel/media-driver/commit/c33cb7b6597d8b8e90b3cd1c15e906e56f8565a9
[13] https://github.com/intel/media-driver/commit/040a59684e8ebb900b18c451bf7720bd61d03a4f
[14] https://github.com/intel/media-driver/commit/3783175d95a4d27cc3be6d69e144b5f7d521cbbf
[15] https://github.com/intel/media-driver/commit/2c55ccdaef8901ee4c6f8a8feda77dfc41f0347b
[16] https://github.com/intel/media-driver/commit/1aa3e6995ccfac86b4ec68265591545302435038
[17] https://github.com/intel/media-driver/pull/975
BUG=b:159825228
TEST=./build_packages --board=eve
Cq-Depend: chromium:2269971
Change-Id: I49ab0c319b8fc38bdac5d65d89fb56969bb314c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/chromiumos-overlay/+/2269975
Tested-by: Andres Calderon Jaramillo <andrescj@chromium.org>
Commit-Queue: Andres Calderon Jaramillo <andrescj@chromium.org>
Reviewed-by: Miguel Casas <mcasas@chromium.org>
26 files changed