Skip to content

Commit 1663ce4

Browse files
Merge branch 'master' into fix-lld17-build-1
2 parents 6b0efda + 1b7d71f commit 1663ce4

28 files changed

+1324
-44
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: docs
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
paths-ignore:

.github/workflows/freebsd.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
name: freebsd
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47

58
jobs:
69
freebsd:
7-
runs-on: macos-12
10+
runs-on: ubuntu-latest
811
steps:
912
- name: 'Checkout'
1013
uses: actions/checkout@v4
1114
- name: 'Install prerequisites and build'
12-
uses: vmactions/freebsd-vm@v0
15+
uses: vmactions/freebsd-vm@v1
1316
with:
1417
prepare: |
1518
pkg install -y meson pkgconf libdrm libXext libXfixes wayland

.github/workflows/ghpages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747

4848
- name: 'Upload the artifacts'
4949
if: github.ref_name == env.GIT_LATEST_TAG
50-
uses: actions/upload-pages-artifact@v2
50+
uses: actions/upload-pages-artifact@v3
5151
with:
5252
path: "_build/doc/html-out"
5353

5454
- name: 'Deploy to GitHub Pages'
5555
if: github.ref_name == env.GIT_LATEST_TAG
5656
id: deployment
57-
uses: actions/deploy-pages@v2
57+
uses: actions/deploy-pages@v4

.github/workflows/style.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: style
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47

58
jobs:

.github/workflows/ubuntu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: ubuntu
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47

58
env:

.github/workflows/windows.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: windows
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47

58
jobs:
@@ -9,7 +12,7 @@ jobs:
912
- name: 'Checkout'
1013
uses: actions/checkout@v4
1114
- name: 'Setup Python'
12-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1316
with:
1417
python-version: '3.x'
1518
- name: 'Install Meson'
@@ -24,6 +27,27 @@ jobs:
2427
- name: 'Install'
2528
run: meson install -C _build
2629

30+
windows-msvc-debug:
31+
runs-on: windows-2022
32+
steps:
33+
- name: 'Checkout'
34+
uses: actions/checkout@v4
35+
- name: 'Setup Python'
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: '3.x'
39+
- name: 'Install Meson'
40+
run: pip install meson
41+
- name: 'Enter DevShell'
42+
run: '.github\workflows\EnterDevShell.ps1 ${{ inputs.architecture }}'
43+
shell: pwsh
44+
- name: 'Configure with meson'
45+
run: meson setup _build -D werror=true -D buildtype=debug
46+
- name: 'Build'
47+
run: meson compile -C _build
48+
- name: 'Install'
49+
run: meson install -C _build
50+
2751
windows-mingw:
2852
runs-on: windows-2022
2953
env:

NEWS

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
1-
libva NEWS -- summary of user visible changes. 2023-09-14
2-
Copyright (C) 2009-2023 Intel Corporation
1+
libva NEWS -- summary of user visible changes. 2024-03-12
2+
Copyright (C) 2009-2024 Intel Corporation
3+
4+
version 2.21.0 - 12.Mar.2024
5+
* va: Add allow_content_tools and force_intger_mv to AV1 enc
6+
* va: add VASurfaceAttribAlignmentSize
7+
* va: Re-add drm_state and fd checks to VA_DRM_GetDriverNames
8+
* va: export symbol vaGetLibFunc for Windows
9+
* va: Add PRIME3 defination and correct the value
10+
* va: add driver name map for new intel KMD xe
11+
* va: export symbol vaMapBuffer2 for Windows
12+
* va: add new interface vaMapBuffer2 for map operation optimization
13+
* va: Add VAConfigAttribEncMaxTileRows and VAConfigAttribEncMaxTileCols
14+
* va: fix handling when all wayland backends fail
15+
* va_trace:add return value trace for vaPutSurfaces
16+
* ci: harden permissions for all github workflows
17+
* ci: update to vmactions/freebsd-vm from v0 to v1
18+
* ci: windows.yml: Add windows-msvc-debug
19+
* meson: create dist archives suitable for building with configure, too
20+
* autogen.sh: successfully detect if the autoreconf program is installed
21+
* build(deps): bump actions/upload-pages-artifact from 2 to 3
22+
* build(deps): bump actions/deploy-pages from 3 to 4
23+
* build(deps): bump actions/setup-python from 4 to 5
24+
* build(deps): bump actions/deploy-pages from 2 to 3
25+
* win32: Fix debug build break
326

427
version 2.20.0 - 14.Sep.2023
528
* va: drop no longer applicable vaGetDriverNames check

autogen.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323

2424
PROJECT="libva"
2525

26+
# for `meson dist`
27+
if test -z "$srcdir"; then
28+
srcdir="$MESON_PROJECT_DIST_ROOT"
29+
test -n "$srcdir" || srcdir="$MESON_DIST_ROOT"
30+
test -n "$srcdir" && NOCONFIGURE=1
31+
fi
32+
2633
test -n "$srcdir" || srcdir="`dirname \"$0\"`"
2734
test -n "$srcdir" || srcdir=.
2835

@@ -36,7 +43,7 @@ cd "$srcdir"
3643

3744
mkdir -p m4
3845

39-
AUTORECONF=`which autoreconf`
46+
AUTORECONF=`command -v autoreconf`
4047
if test -z $AUTORECONF; then
4148
echo "*** No autoreconf found ***"
4249
exit 1

configure.ac

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# - reset micro version to zero when minor version is incremented
2828
# - reset minor version to zero when major version is incremented
2929
m4_define([va_api_major_version], [1])
30-
m4_define([va_api_minor_version], [21])
30+
m4_define([va_api_minor_version], [22])
3131
m4_define([va_api_micro_version], [0])
3232

3333
m4_define([va_api_version],
@@ -75,7 +75,8 @@ m4_define([libva_lt_age],
7575
[m4_eval(libva_binary_age - libva_interface_age)])
7676

7777
# libdrm minimun version requirement
78-
m4_define([libdrm_version], [2.4.60])
78+
# 2.4.75 for drmGetDevices2
79+
m4_define([libdrm_version], [2.4.75])
7980

8081
# Wayland minimum version number
8182
# 1.11.0 for wl_proxy_create_wrapper

meson.build

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# - reset micro version to zero when VA-API major or minor version is changed
88
project(
99
'libva', 'c',
10-
version : '2.21.0.1',
10+
version : '2.22.0.1',
1111
meson_version : '>= 0.53.0',
1212
default_options : [ 'warning_level=1',
1313
'buildtype=debugoptimized' ])
@@ -19,7 +19,7 @@ project(
1919
# - reset micro version to zero when minor version is incremented
2020
# - reset minor version to zero when major version is incremented
2121
va_api_major_version = 1
22-
va_api_minor_version = 21
22+
va_api_minor_version = 22
2323
va_api_micro_version = 0
2424

2525
va_api_version = '@0@.@1@.@2@'.format(va_api_major_version,
@@ -85,7 +85,7 @@ cc = meson.get_compiler('c')
8585
dl_dep = cc.find_library('dl', required : false)
8686

8787
WITH_DRM = not get_option('disable_drm') and (host_machine.system() != 'windows')
88-
libdrm_dep = dependency('libdrm', version : '>= 2.4.60', required : (host_machine.system() != 'windows'))
88+
libdrm_dep = dependency('libdrm', version : '>= 2.4.75', required : (host_machine.system() != 'windows'))
8989

9090
WITH_X11 = false
9191
if get_option('with_x11') != 'no'
@@ -157,3 +157,5 @@ doxygen = find_program('doxygen', required: false)
157157
if get_option('enable_docs') and doxygen.found()
158158
subdir('doc')
159159
endif
160+
161+
meson.add_dist_script('./autogen.sh')

0 commit comments

Comments
 (0)