~thong-u/unoptimized/+git/libva:v2.18-branch

Last commit made on 2023-03-19
Get this branch:
git clone -b v2.18-branch https://git.launchpad.net/~thong-u/unoptimized/+git/libva

Branch merges

Branch information

Name:
v2.18-branch
Repository:
lp:~thong-u/unoptimized/+git/libva

Recent commits

b06ccb3... by Carl Zhang <email address hidden>

libva 2.18.0

Signed-off-by: Carl Zhang <email address hidden>

0fa448d... by Carl Zhang <email address hidden>

update NEWS for libva 2.18.0

Signed-off-by: Carl Zhang <email address hidden>

ad032fb... by sherry lin

Add build and install libva informatio in home page.

Add detail steps for libva building and installing.

Signed-off-by: Lin, Sherry <email address hidden>

97cbc87... by caij <email address hidden>

NULL check before calling strncmp.

Signed-off-by: caij <email address hidden>

0fc018a... by Emil Velikov <email address hidden>

ci: add dependabot

Add a dependabot CI, which will track when any of our CI actions become
out of date. When so a PR will be opened automatically by the bot.

Aka automate changes like the following amongst others:

d1f80cb ("ci: switch checkout action from @v2 to @v3")
7afc9ae ("ci: switch python action from @v2 to @v4")

Signed-off-by: Emil Velikov <email address hidden>

cb2499b... by Emil Velikov <email address hidden>

va: fix the codying style of CHECK_DISPLAY

The in-tree style-unity didn't spot any issues, most likely since it's a
macro... oops

Signed-off-by: Emil Velikov <email address hidden>

979e5d3... by Emil Velikov <email address hidden>

va: remove dummy isValid() hook

Bunch of the backends are using a simple
  return pDisplayContext && pDisplayContext->pDriverContext

... where pDisplayContext is always true. A few others are checking the
display_type, which in itself is absolutely useless.

So move the pDriverContext check within core libva and drop the isValid
hook across all winsys libraries.

Signed-off-by: Emil Velikov <email address hidden>

c1cbcba... by Emil Velikov <email address hidden>

x11: use LIBVA_DRI3_DISABLE in GetNumCandidates

As reported by @zhmars, we need to check the override in both code
paths.

That's because we get only one candidate, while for Intel GPUs we have 2
drivers - so this might work when the user needs iHD, but will fail if
they rely on the older driver.

Signed-off-by: Emil Velikov <email address hidden>

0cae15f... by Carl Zhang <email address hidden>

libva 2.18.0.pre1

Signed-off-by: Carl Zhang <email address hidden>

a0a2787... by Sil Vilerino

compat_win32: Add getenv wrapper for WIN32

The Windows getenv function reads the snapshot of values of env. variables
at va.dll load time, disregarding future putenv calls from the same process.

This causes issues for apps/tests that do putenv/setenv for LIBVA_DRIVER_NAME or
LIBVA_DRIVERS_PATH before calling vaInitialize. For example, the vaInitialize_vaTerminate
tests in libva-utils test suite.

Fortunately there's a GetEnvironmentVariableA function that does the proper env. var reading
taking into account calls to putenv/setenv. Use that function instead for Windows.

https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/getenv-wgetenv?view=msvc-170
https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getenvironmentvariablea

Signed-off-by: Sil Vilerino <email address hidden>