SHA256
1
0
forked from pool/Mesa

95 Commits

Author SHA256 Message Date
69ff522f21 Sync changes to SLFO-1.2 branch 2025-08-20 08:56:30 +02:00
c4d953352b Accepting request 1273728 from X11:XOrg
- Update to release 25.0.5
  --> https://docs.mesa3d.org/relnotes/25.0.5

OBS-URL: https://build.opensuse.org/request/show/1273728
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=542
2025-05-01 13:22:43 +00:00
5b8228f9ce - Update to release 25.0.5
--> https://docs.mesa3d.org/relnotes/25.0.5

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1406
2025-04-30 18:13:26 +00:00
6ab48c6ab5 Accepting request 1270885 from X11:XOrg
- Update to release 25.0.4
  --> https://docs.mesa3d.org/relnotes/25.0.4

OBS-URL: https://build.opensuse.org/request/show/1270885
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=541
2025-04-20 07:34:36 +00:00
d6ff7d6cf0 - Update to release 25.0.4
--> https://docs.mesa3d.org/relnotes/25.0.4

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1404
2025-04-18 17:25:04 +00:00
8034287d3a Accepting request 1267883 from X11:XOrg
- let Mesa-dri only require libvulkan1, libvulkan_lvp if build
  of vulkan drivers is enabled on this platform

- let Mesa-dri also require libvulkan_lvp; fixes startup of Wayland
  sessions with Mesa 25.0.3 (boo#1240854)

- U_clover-Don-t-include-libclc-headers.patch
  * don't break clover with libclc 20.1.0 update (boo#1240848)

- Update to release 25.0.3
  --> https://docs.mesa3d.org/relnotes/25.0.3

- require llvm20/clang20

OBS-URL: https://build.opensuse.org/request/show/1267883
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=540
2025-04-09 19:49:23 +00:00
137d722596 - let Mesa-dri only require libvulkan1, libvulkan_lvp if build
of vulkan drivers is enabled on this platform

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1402
2025-04-07 19:22:39 +00:00
0b77d400b7 let Mesa-dri also require libvulkan_lvp; fixes startup of Wayland
sessions with Mesa 25.0.3 (boo#1240854)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1401
2025-04-07 14:42:04 +00:00
8f898bd3a3 - added bugnumber to latest changelog entry
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1400
2025-04-07 11:00:52 +00:00
4714e057e2 - U_clover-Don-t-include-libclc-headers.patch
* don't break clover with libclc 20.1.0 update

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1399
2025-04-07 10:58:55 +00:00
1467201132 - Update to release 25.0.3
--> https://docs.mesa3d.org/relnotes/25.0.3

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1398
2025-04-06 15:23:06 +00:00
08472475e0 Revert to 25.0.2 - test for virtio-vga issues
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=539
2025-04-05 11:31:47 +00:00
OBS User buildservice-autocommit
fba3eb1b4e Updating link to change in openSUSE:Factory/Mesa revision 539
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=d89bc3782c579dfb252f70bbf9f0bf8a
2025-04-05 11:31:47 +00:00
119112fe30 Accepting request 1266736 from X11:XOrg
-  Update to release 25.0.3
   --> https://docs.mesa3d.org/relnotes/25.0.3

OBS-URL: https://build.opensuse.org/request/show/1266736
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=538
2025-04-04 15:28:32 +00:00
e13371f509 - require llvm20/clang20
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1396
2025-04-04 12:23:57 +00:00
b23d3f6cdd - Update to release 25.0.3
--> https://docs.mesa3d.org/relnotes/25.0.3

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1395
2025-04-03 02:25:20 +00:00
74dcec4c6f Accepting request 1265937 from X11:XOrg
- don't apply revert_8c91624614c1f939974fe0d2d1a3baf83335cecb.patch
  on s390x, which is not affected by that issue (different Mesa
  version)

OBS-URL: https://build.opensuse.org/request/show/1265937
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=537
2025-04-02 15:08:01 +00:00
30e0b3135e - don't apply revert_8c91624614c1f939974fe0d2d1a3baf83335cecb.patch
on s390x, which is not affected by that issue (different Mesa
  version)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1393
2025-03-31 16:22:05 +00:00
b8f97b5588 Accepting request 1255941 from X11:XOrg
OBS-URL: https://build.opensuse.org/request/show/1255941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=536
2025-03-26 20:18:06 +00:00
7a3960c28b - Fix regression in winsys/amdgpu (boo#1239657)
revert_8c91624614c1f939974fe0d2d1a3baf83335cecb.patch
  https://gitlab.freedesktop.org/mesa/mesa/-/issues/12809
  8c91624614

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1391
2025-03-25 11:42:34 +00:00
c75ba80b14 Accepting request 1254829 from X11:XOrg
- Update to release 25.0.2
   --> https://docs.mesa3d.org/relnotes/25.0.2

OBS-URL: https://build.opensuse.org/request/show/1254829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=535
2025-03-24 12:25:10 +00:00
399a46662e - Update to release 25.0.2
--> https://docs.mesa3d.org/relnotes/25.0.2

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1389
2025-03-20 20:26:50 +00:00
28579123c6 Accepting request 1251596 from X11:XOrg
OBS-URL: https://build.opensuse.org/request/show/1251596
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=534
2025-03-11 19:42:41 +00:00
dca15efc29 - Make build recipe POSIX sh compatible
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1387
2025-03-09 23:56:26 +00:00
1b5c3ec0d3 Accepting request 1251244 from X11:XOrg
- enabled Raytracing (vulkan) support for intel ARC GPUs
  (boo#1238732)

- no longer hardcode CXX, but instead make use of %gcc_version, 
  which is implicitely set in prjconf, which I wasn't aware of ...

- Build with GCC 13 on Leap/SLES 15 (bsc#1238713)

- Update to release 25.0.1
   --> https://docs.mesa3d.org/relnotes/25.0.1

OBS-URL: https://build.opensuse.org/request/show/1251244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=533
2025-03-08 16:51:53 +00:00
7e938404bd - enabled Raytracing (vulkan) support for intel ARC GPUs
(boo#1238732)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1385
2025-03-07 16:43:58 +00:00
4e7bebe420 - no longer hardcode CXX, but instead make use of %gcc_version,
which is implicitely set in prjconf, which I wasn't aware of ...

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1384
2025-03-07 10:00:26 +00:00
544e282c6e - CXX needs to be set to an existing g++ compiler; otherwise you get
meson.build:4:0: ERROR: Unknown compiler(s): [['c++'], ['g++'], ['clang++'], ['nvc++'], ['pgc++'], ['icpc'], ['icpx']]
    The following exception(s) were encountered:
    Running `c++ --version` gave "[Errno 2] No such file or directory: 'c++'"
    Running `g++ --version` gave "[Errno 2] No such file or directory: 'g++'"
    Running `clang++ --version` gave "[Errno 2] No such file or directory: 'clang++'"
    Running `nvc++ --version` gave "[Errno 2] No such file or directory: 'nvc++'"
    Running `pgc++ --version` gave "[Errno 2] No such file or directory: 'pgc++'"
    Running `icpc --version` gave "[Errno 2] No such file or directory: 'icpc'"
    Running `icpx --version` gave "[Errno 2] No such file or directory: 'icpx'"
  Since there is no 'g++' available I take 'g++-14', i.e. 
   export CXX=g++-14
  I don't care if gcc gets updated and Mesa fails then. I much more
  often need to update Mesa than we see a gcc update ...

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1383
2025-03-06 22:35:59 +00:00
2b5f55b1b2 improved changelog
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1382
2025-03-06 20:08:53 +00:00
7545eed3da - (hopefully) fixed build for TW
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1381
2025-03-06 14:59:25 +00:00
365e6a55ce - Build with GCC 13 on Leap/SLES 15 (bsc#1238713)
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1380
2025-03-06 13:53:11 +00:00
189b8505a3 - Update to release 25.0.1
--> https://docs.mesa3d.org/relnotes/25.0.1

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1379
2025-03-05 22:18:03 +00:00
501e0b491d Accepting request 1250422 from X11:XOrg
- don't obsolete Mesa-libglapi0 on s390x since this is still on 
  Mesa 24.1.7

OBS-URL: https://build.opensuse.org/request/show/1250422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=532
2025-03-05 13:22:45 +00:00
3002f72609 - don't obsolete Mesa-libglapi0 on s390x since this is still on
Mesa 24.1.7

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1377
2025-03-05 13:18:22 +00:00
ca70d74ba2 Accepting request 1247809 from X11:XOrg
- Add explanation for the "CM" in "GLESv1_CM".
- Drop idempotent %if..%endif guards that do nothing.
- Combine some rm calls in the build recipe.
- Add -v argument to all rm calls to see the result of the
  deletion in the build log.

- Update to release 25.0.0
   --> https://docs.mesa3d.org/relnotes/25.0.0 
- adjusted u_dep_xcb.patch
- supersedes U_radeonsi-disallow-compute-queues-on-Raven-Raven2-due.patch
- libglapi merged into libgallium
- add patches to fix compilation with Python 3.6 (SLE15 SP7, SLE16, Leap 15.6)
  * u_intel-drop-annotations-from-spv2hex.patch
  * u_meson-lower-python-version-requirement.patch
  --> credits go to "Mikhail Paulyshka" <me@mixaill.net>

OBS-URL: https://build.opensuse.org/request/show/1247809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=531
2025-02-22 18:04:31 +00:00
c7704e23b2 - Add explanation for the "CM" in "GLESv1_CM".
- Drop idempotent %if..%endif guards that do nothing.
- Combine some rm calls in the build recipe.
- Add -v argument to all rm calls to see the result of the
  deletion in the build log.

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1375
2025-02-22 10:20:38 +00:00
756edacda1 only obsolete, but do not provide Mesa-libglapi0 package
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1374
2025-02-21 12:25:38 +00:00
3166e09211 - add patches to fix compilation with Python 3.6 (SLE15 SP7, SLE16, Leap 15.6)
* u_intel-drop-annotations-from-spv2hex.patch
  * u_meson-lower-python-version-requirement.patch
  --> credits go to "Mikhail Paulyshka" <me@mixaill.net>
- fix again build for s390x

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1373
2025-02-20 15:41:08 +00:00
e4bfeaa434 no longer try to apply a removed patch
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1372
2025-02-20 15:23:52 +00:00
c3fc378616 - Update to release 25.0.0
--> https://docs.mesa3d.org/relnotes/25.0.0 
- adjusted u_dep_xcb.patch
- supersedes U_radeonsi-disallow-compute-queues-on-Raven-Raven2-due.patch
- libglapi merged into libgallium

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1371
2025-02-20 15:07:58 +00:00
5cd5214980 Accepting request 1242004 from X11:XOrg
- U_radeonsi-disallow-compute-queues-on-Raven-Raven2-due.patch 
  * Fixes: 58b512ddd6e - radeonsi: execute clears at resource 
    allocation using compute instead of gfx
  * Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12310

OBS-URL: https://build.opensuse.org/request/show/1242004
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=530
2025-02-03 20:40:43 +00:00
2913e6c94e - U_radeonsi-disallow-compute-queues-on-Raven-Raven2-due.patch
* Fixes: 58b512ddd6e - radeonsi: execute clears at resource 
    allocation using compute instead of gfx
  * Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12310

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1369
2025-01-31 23:47:57 +00:00
bed89ae97d Accepting request 1239673 from X11:XOrg
- Update to release 24.3.4
  --> https://docs.mesa3d.org/relnotes/24.3.4

OBS-URL: https://build.opensuse.org/request/show/1239673
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=529
2025-01-24 12:38:08 +00:00
67372cdeca - Update to release 24.3.4
--> https://docs.mesa3d.org/relnotes/24.3.4

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1367
2025-01-22 22:18:08 +00:00
4fa63ed521 Accepting request 1237561 from X11:XOrg
OBS-URL: https://build.opensuse.org/request/show/1237561
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=528
2025-01-15 16:41:54 +00:00
9dffa57969 - aarch64: enable build of panvk driver
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1365
2025-01-13 21:11:51 +00:00
b1b4a7a066 Accepting request 1234954 from X11:XOrg
- Update to release 24.3.3
  --> https://docs.mesa3d.org/relnotes/24.3.3

- Update to release 24.3.2
  --> https://docs.mesa3d.org/relnotes/24.3.2
- supersedes the following patches:
  * 0001-dri-don-t-fetch-X11-modifiers-if-we-don-t-support-th.patch
  * 0002-egl-wayland-only-supply-LINEAR-modifier-when-support.patch
  * 0003-egl-wayland-fallback-to-implicit-modifiers-if-advert.patch

OBS-URL: https://build.opensuse.org/request/show/1234954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=527
2025-01-06 15:04:36 +00:00
44d777d44e - Update to release 24.3.3
--> https://docs.mesa3d.org/relnotes/24.3.3

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1363
2025-01-04 21:17:09 +00:00
4e16eb70e1 - Update to release 24.3.2
--> https://docs.mesa3d.org/relnotes/24.3.2
- supersedes the following patches:
  * 0001-dri-don-t-fetch-X11-modifiers-if-we-don-t-support-th.patch
  * 0002-egl-wayland-only-supply-LINEAR-modifier-when-support.patch
  * 0003-egl-wayland-fallback-to-implicit-modifiers-if-advert.patch

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1362
2025-01-04 20:41:34 +00:00
ce84aa7456 Accepting request 1232706 from X11:XOrg
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1232706
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=526
2024-12-22 16:58:43 +00:00
7fe280a86b - require llvm19/clang19 on sle15 >= sp6
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1360
2024-12-12 22:58:47 +00:00
b1d18b6629 - require llvm19/clang19 on sle15 >= sp5
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1359
2024-12-12 20:01:42 +00:00
6d5ce89d1a Accepting request 1229753 from X11:XOrg
- aarch64: disable build of etnaviv driver on sle15-sp7 due to
  python3-pycparser >= 2.20 not available

- don't apply patches of previous changelog for s390x; Mesa 24.1.7
  doesn't suffer from this issue, only Mesa 24.3.1 ... 

- 0001-dri-don-t-fetch-X11-modifiers-if-we-don-t-support-th.patch
  0002-egl-wayland-only-supply-LINEAR-modifier-when-support.patch
  0003-egl-wayland-fallback-to-implicit-modifiers-if-advert.patch
  * fixes mesa 24.3.1 gallium crash/segfault on GPUs without
    format modifiers (mesa issue#12253, mesa MR#32535, boo#1234302)

OBS-URL: https://build.opensuse.org/request/show/1229753
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=525
2024-12-10 22:43:12 +00:00
6e0a95c0f2 python-pycparser -> python3-pycparser in changelog
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1357
2024-12-10 09:43:30 +00:00
b391234351 - aarch64: disable build of etnaviv driver on sle15-sp7 due to
python-pycparser >= 2.20 not available

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1356
2024-12-09 19:09:55 +00:00
83819dbddd - don't apply patches of previous changelog for s390x; Mesa 24.1.7
doesn't suffer from this issue, only Mesa 24.3.1 ...

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1355
2024-12-09 14:38:39 +00:00
756b7868e8 - 0001-dri-don-t-fetch-X11-modifiers-if-we-don-t-support-th.patch
0002-egl-wayland-only-supply-LINEAR-modifier-when-support.patch
  0003-egl-wayland-fallback-to-implicit-modifiers-if-advert.patch
  * fixes mesa 24.3.1 gallium crash/segfault on GPUs without
    format modifiers (mesa issue#12253, mesa MR#32535, boo#1234302)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1354
2024-12-08 22:09:41 +00:00
3f91af7ea2 Accepting request 1228413 from X11:XOrg
- Update to release 24.3.1
  --> https://docs.mesa3d.org/relnotes/24.3.1

OBS-URL: https://build.opensuse.org/request/show/1228413
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=524
2024-12-06 13:25:04 +00:00
d7ff6d0fb2 - Update to release 24.3.1
--> https://docs.mesa3d.org/relnotes/24.3.1

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1352
2024-12-05 03:20:11 +00:00
b11ee9f267 Accepting request 1226983 from X11:XOrg
- trying to make buildservice happy by adding both tarballs to
  specfile and adjusted patches for 24.17 to changelog ... 

- on s390x build Mesa 24.1.7 to fix colors with Xvnc (boo#1233167)
- adjusted patches for Mesa 24.1.7:
  * python36-buildfix1-s390x.patch
  * u_dep_xcb-s390x.patch
  * u_mesa-CVE-2023-45913-s390x.patch

OBS-URL: https://build.opensuse.org/request/show/1226983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=523
2024-11-28 23:08:33 +00:00
bf90f47ebe - adjusted patches for Mesa 24.1.7:
* python36-buildfix1-s390x.patch
  * u_dep_xcb-s390x.patch
  * u_mesa-CVE-2023-45913-s390x.patch

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1350
2024-11-27 23:27:27 +00:00
c26fd00571 - trying to make buildservice happy by adding both tarballs to
specfile ...

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1349
2024-11-27 23:11:40 +00:00
f2a7252da9 - on s390x build Mesa 24.1.7 to fix colors with Xvnc (boo#1233167)
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1348
2024-11-27 14:40:50 +00:00
c2c6e4b459 Accepting request 1225842 from X11:XOrg
- Update to release 24.3.0
  --> https://docs.mesa3d.org/relnotes/24.3.0

- Update to release 24.3.0~rc2
  --> https://www.phoronix.com/news/Mesa-24.3-rc2
- Update to release 24.3.0~rc1
  --> https://www.phoronix.com/news/Mesa-24.3-rc1-Released
- refreshed patches:
  * n_drirc-disable-rgb10-for-chromium-on-amd.patch
  * python36-buildfix1.patch
  * python36-buildfix2.patch
  * tlsdesc_test.patch
  * u_mesa-CVE-2023-45913.patch
  * u_mesa-CVE-2023-45919.patch
  * u_mesa-CVE-2023-45922.patch
  * u_dep_xcb.patch
- drop no longer supported options:
  * -Ddri3=enabled
  * -Ddri-search-path=%{_libdir}/dri
- new files added in this update currently packaged as part of
  Mesa-dri:
  * %{_libdir}/gbm/dri_gbm.so

OBS-URL: https://build.opensuse.org/request/show/1225842
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=522
2024-11-24 10:04:02 +00:00
7f8e85c03b fixed u_mesa-CVE-2023-45913.patch
re-added u_dep_xcb.patch
adjusted changelog entry

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1346
2024-11-22 14:33:29 +00:00
a3f4315d0b Accepting request 1225797 from home:darix:playground
- Update to release 24.3.0
  --> https://docs.mesa3d.org/relnotes/24.3.0

- Update to release 24.3.0~rc2
  https://www.phoronix.com/news/Mesa-24.3-rc2
- Update to release 24.3.0~rc1
  https://www.phoronix.com/news/Mesa-24.3-rc1-Released
- refreshed patches:
  n_drirc-disable-rgb10-for-chromium-on-amd.patch
  python36-buildfix1.patch
  python36-buildfix2.patch
  tlsdesc_test.patch
  u_mesa-CVE-2023-45913.patch
  u_mesa-CVE-2023-45919.patch
  u_mesa-CVE-2023-45922.patch
- drop patches
  0001-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch
  u_dep_xcb.patch
- drop no longer supported options:
  -Ddri3=enabled
  -Ddri-search-path=%{_libdir}/dri
- new files added in this update currently packaged as part of
  Mesa-dri:
  %{_libdir}/gbm/dri_gbm.so

OBS-URL: https://build.opensuse.org/request/show/1225797
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1345
2024-11-22 12:58:55 +00:00
91ab23db2a Accepting request 1225106 from X11:XOrg
- Update to release 24.2.7
  --> https://docs.mesa3d.org/relnotes/24.2.7
- supersedes 0001-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch

OBS-URL: https://build.opensuse.org/request/show/1225106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=521
2024-11-20 15:58:51 +00:00
72e0c5efd0 - Update to release 24.2.7
--> https://docs.mesa3d.org/relnotes/24.2.7
- supersedes 0001-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1343
2024-11-19 13:16:00 +00:00
c15a21f367 Accepting request 1221967 from X11:XOrg
- 0001-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch
  * fixes colors for 'swrast' driver (boo#1230637, gitlab issue#11840)

- Update to release 24.2.6
  --> https://docs.mesa3d.org/relnotes/24.2.6

- added -32bit package for Mesa-libva since it's needed by Steam;
  reported on packman ML:
  https://lists.links2linux.de/pipermail/packman/2024-October/017985.html 

- Enable intel Vulkan backends on riscv64 (boo#1231756)
- Enable iris Gallium backend on riscv64, Power and on Arm, too

- Update to release 24.2.5
  --> https://docs.mesa3d.org/relnotes/24.2.5
- drop u_fix-llvm19-build.patch
  included in upstream

- Update to release 24.2.4
  --> https://docs.mesa3d.org/relnotes/24.2.4

- u_mesa-CVE-2023-45913.patch
  * NULL pointer dereference via dri2GetGlxDrawableFromXDrawableId()
    (CVE-2023-45913, bsc#1222040)
- u_mesa-CVE-2023-45919.patch
  * buffer over-read in glXQueryServerString() 
    (CVE-2023-45919, bsc#1222041)
- u_mesa-CVE-2023-45922.patch
  * segmentation violation in __glXGetDrawableAttribute()
    (CVE-2023-45922, bsc#1222042) 


- libvdpau_gallium was linked directly into libgallium-*.so.*.
  Drop the subpackage and provides/obsolete it via Mesa-dri which
  ships libgallium-*.so.*.

- drop u_fix_rust_bindgen.patch 
  included in update

- Update to release 24.2.3
  --> https://docs.mesa3d.org/relnotes/24.2.3

- disable build of rusticl on sle15; meson is just too old ... 

- buildrequires: rusticl needs mesa >= 1.4.0

- tlsdesc_test.patch: disable LTO in tlsdesc_test to suppress TLS
  relaxation (patch by Andreas Schwab <schwab@suse.de>); see also
  https://gitlab.freedesktop.org/mesa/mesa/-/issues/11929

- buildrequire llvm19-devel/clang19-devel on sle15-sp7

- Add u_fix-llvm19-build.patch to fix build with LLVM 19 on ARM.
- Update minimum version requirements based on meson.build.
- Fix build on s390x: apparently we don't have libvdpau_gallium.so.

- drop U_egl-x11-sw-fix-partial-image-uploads.patch:
  the code in the function saw further fixes later on in the 24.2
  branch.

- integrated changes by Andreas Schwab <schwab@suse.de>
  * enable glamor also for driver build
  * update rust crates
    + syn 2.0.39
    + proc_macro2 1.0.86
  * enable valgrind also on riscv64
  * added libvdpau_gallium package for generic VDPAU state tracker
  * switch from "swrast" to "softpipe,llvmpipe" drivers
  * use "-Dllvm-orcjit=true" for riscv64 build
  * added libgallium to Mesa-dri package

- re-disable llvm for non-driver build by switching from "swrast"
  to "softpipe" for gallium drivers in that case
- make previous changelog a bit nicer

- Update to release 24.2.2
  --> https://docs.mesa3d.org/relnotes/24.2.2
  --> https://docs.mesa3d.org/relnotes/24.2.1
  --> https://docs.mesa3d.org/relnotes/24.2.0
- refreshed the following patches with quilt:
  * U_fix-mpeg1_2-decode-mesa-20.2.patch
  * n_add-Mesa-headers-again.patch
  * n_stop-iris-flicker.patch
  * u_dep_xcb.patch
  * u_fix_rust_bindgen.patch
- dropped U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch
- New BuildRequires:
  * python3-PyYAML
- enable llvm also for non-driver build to fix:
  "llvmpipe requires LLVM and is enabled, but LLVM is disabled".

OBS-URL: https://build.opensuse.org/request/show/1221967
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=520
2024-11-08 10:53:53 +00:00
70797b0a7f - 0001-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch
* fixes colors for 'swrast' driver (boo#1230637, gitlab issue#11840)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1341
2024-11-07 00:40:02 +00:00
184997f2a7 - Update to release 24.2.6
--> https://docs.mesa3d.org/relnotes/24.2.6

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1340
2024-11-04 14:21:52 +00:00
3111e3b461 - added -32bit package for Mesa-libva since it's needed by Steam;
reported on packman ML:
  https://lists.links2linux.de/pipermail/packman/2024-October/017985.html

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1339
2024-10-31 19:16:49 +00:00
543234073b - Enable intel Vulkan backends on riscv64 (boo#1231756)
- Enable iris Gallium backend on riscv64, Power and on Arm, too

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1338
2024-10-19 18:11:33 +00:00
0efc1cf7e5 - Update to release 24.2.5
--> https://docs.mesa3d.org/relnotes/24.2.5
- drop u_fix-llvm19-build.patch
  included in upstream

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1337
2024-10-17 11:53:08 +00:00
ab89c1c41e - Update to release 24.2.4
--> https://docs.mesa3d.org/relnotes/24.2.4

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1336
2024-10-03 20:29:33 +00:00
2fb7449ee5 - u_mesa-CVE-2023-45913.patch
* NULL pointer dereference via dri2GetGlxDrawableFromXDrawableId()
    (CVE-2023-45913, bsc#1222040)
- u_mesa-CVE-2023-45919.patch
  * buffer over-read in glXQueryServerString() 
    (CVE-2023-45919, bsc#1222041)
- u_mesa-CVE-2023-45922.patch
  * segmentation violation in __glXGetDrawableAttribute()
    (CVE-2023-45922, bsc#1222042)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1335
2024-10-01 12:22:57 +00:00
13c57f25db - libvdpau_gallium was linked directly into libgallium-*.so.*.
Drop the subpackage and provides/obsolete it via Mesa-dri which
  ships libgallium-*.so.*.

- drop u_fix_rust_bindgen.patch 
  included in update

- Update to release 24.2.3
  --> https://docs.mesa3d.org/relnotes/24.2.3

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1334
2024-09-23 18:35:46 +00:00
9393bb7dfe - disable build of rusticl on sle15; meson is just too old ...
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1333
2024-09-23 10:59:03 +00:00
e68c9f01f9 - buildrequires: rusticl needs mesa >= 1.4.0
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1332
2024-09-23 10:52:15 +00:00
d9790edb6f - tlsdesc_test.patch: disable LTO in tlsdesc_test to suppress TLS
relaxation (patch by Andreas Schwab <schwab@suse.de>); see also
  https://gitlab.freedesktop.org/mesa/mesa/-/issues/11929

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1331
2024-09-23 10:45:14 +00:00
f4eb8e3975 - buildrequire llvm19-devel/clang19-devel on sle15-sp7
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1330
2024-09-23 10:37:39 +00:00
32006fba16 - Add u_fix-llvm19-build.patch to fix build with LLVM 19 on ARM.
- Update minimum version requirements based on meson.build.
- Fix build on s390x: apparently we don't have libvdpau_gallium.so.

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1329
2024-09-23 10:32:02 +00:00
3480334669 - drop U_egl-x11-sw-fix-partial-image-uploads.patch:
the code in the function saw further fixes later on in the 24.2
  branch.

- integrated changes by Andreas Schwab <schwab@suse.de>
  * enable glamor also for driver build
  * update rust crates
    + syn 2.0.39
    + proc_macro2 1.0.86
  * enable valgrind also on riscv64
  * added libvdpau_gallium package for generic VDPAU state tracker
  * switch from "swrast" to "softpipe,llvmpipe" drivers
  * use "-Dllvm-orcjit=true" for riscv64 build
  * added libgallium to Mesa-dri package

- re-disable llvm for non-driver build by switching from "swrast"
  to "softpipe" for gallium drivers in that case
- make previous changelog a bit nicer

- Update to release 24.2.2
  --> https://docs.mesa3d.org/relnotes/24.2.2
  --> https://docs.mesa3d.org/relnotes/24.2.1
  --> https://docs.mesa3d.org/relnotes/24.2.0
- refreshed the following patches with quilt:
  * U_fix-mpeg1_2-decode-mesa-20.2.patch
  * n_add-Mesa-headers-again.patch
  * n_stop-iris-flicker.patch
  * u_dep_xcb.patch
  * u_fix_rust_bindgen.patch
- dropped U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1328
2024-09-16 09:17:49 +00:00
b125aad29b Accepting request 1200878 from X11:XOrg
- U_egl-x11-sw-fix-partial-image-uploads.patch
  * culprit for the regression in 24.1.4; reverse apply this for
    now (boo#1228164)

- Update to bugfix release 24.1.7
  --> https://docs.mesa3d.org/relnotes/24.1.7
- Supersedes the following patch:
  * U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch
- Rebase patches with quilt.

OBS-URL: https://build.opensuse.org/request/show/1200878
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=519
2024-09-15 10:33:20 +00:00
36582e646f - U_egl-x11-sw-fix-partial-image-uploads.patch
* culprit for the regression in 24.1.4; reverse apply this for
    now (boo#1228164)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1326
2024-09-13 15:49:34 +00:00
00c04c92a0 - Update to bugfix release 24.1.7
--> https://docs.mesa3d.org/relnotes/24.1.7
- Supersedes the following patch:
  * U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch
- Rebase patches with quilt.

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1325
2024-09-09 13:29:21 +00:00
e2f98b9f0c Accepting request 1195891 from X11:XOrg
- Fix random GPU crash with AMDGPU (bsc#1229050):
  U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch
  (credits go to Takashi Iwai!)

OBS-URL: https://build.opensuse.org/request/show/1195891
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=518
2024-08-26 20:05:35 +00:00
727cd72102 - Fix random GPU crash with AMDGPU (bsc#1229050):
U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch
  (credits go to Takashi Iwai!)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1323
2024-08-25 09:11:57 +00:00
75c2093e0c Accepting request 1195243 from X11:XOrg
OBS-URL: https://build.opensuse.org/request/show/1195243
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=517
2024-08-22 16:10:40 +00:00
de847ebc54 - fix build with current rust-bindgen
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1321
2024-08-22 06:34:51 +00:00
b255bd6193 Accepting request 1191441 from openSUSE:Factory
Revert to 24.1.3 - https://bugzilla.opensuse.org/show_bug.cgi?id=1228164

OBS-URL: https://build.opensuse.org/request/show/1191441
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=516
2024-08-03 18:04:45 +00:00
OBS User buildservice-autocommit
cda19f8f9d Updating link to change in openSUSE:Factory/Mesa revision 516
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=058d91c2e60366eff69713926cee4187
2024-08-03 18:04:45 +00:00
2711e4c5c4 Accepting request 1190904 from X11:XOrg
- Update to bugfix release 24.1.5
  --> https://docs.mesa3d.org/relnotes/24.1.5

OBS-URL: https://build.opensuse.org/request/show/1190904
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=515
2024-08-02 15:25:29 +00:00
b161194d27 - Update to bugfix release 24.1.5
--> https://docs.mesa3d.org/relnotes/24.1.5

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1319
2024-08-01 07:58:51 +00:00
OBS User buildservice-autocommit
6b2128b8a9 Updating link to change in openSUSE:Factory/Mesa revision 514
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=84a663a53e5a2d86b8713bfe29257452
2024-07-22 15:16:42 +00:00
34 changed files with 895 additions and 98 deletions

View File

@@ -1,3 +1,335 @@
-------------------------------------------------------------------
Thu Jul 24 07:00:09 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
- U_loader_wayland-Fix-missing-timespec.h-include.patch
* fixes build with wayland-protocols 1.45
-------------------------------------------------------------------
Fri Jul 4 08:56:49 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- U_0001-svga-add-svga_resource_create_with_modifiers-functio.patch
U_0002-svga-fix-printing-64-bit-value-for-32-bit-build.patch
* fixes Wayland session when using SP7 as vmware guest (bsc#1245034)
-------------------------------------------------------------------
Sat May 24 09:34:58 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- U_gbm-fix-get_back_bo-failure-with-gbm_surface-and-imp.patch
* should fix hangup on "Started GNOME Display Manager" in a VM
on VMware Fusion Pro (bsc#1241370)
-------------------------------------------------------------------
Fri May 16 12:22:03 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- aarch64: enable panfrost vulkan driver on Leap 16.0
-------------------------------------------------------------------
Fri Apr 25 10:39:34 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- U_egl-never-select-swrast-for-vmwgfx.patch
* fixes crash in libgallium on virtualbox (bsc#1241701)
-------------------------------------------------------------------
Thu Mar 20 14:54:39 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- fixed build on SLE16
-------------------------------------------------------------------
Thu Mar 6 13:48:38 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- Build with GCC 13 on Leap/SLES 15 (bsc#1238713)
-------------------------------------------------------------------
Thu Mar 6 01:32:40 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- reverted previous change; n_remove-llvm17-wa-option.patch didn't
help at all ...
-------------------------------------------------------------------
Wed Mar 5 13:33:53 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- n_remove-llvm17-wa-option.patch
* no longer use --llvm17-wa option when running intel_clc;
hopefully this fixes again Mesa's build after we updated
llvm 19.1.5 to 19.1.7 and building it now with gcc13 instead of
gcc7 (bsc#1238713)
-------------------------------------------------------------------
Sat Jan 4 20:46:28 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- Update to release 24.3.3
--> https://docs.mesa3d.org/relnotes/24.3.3
-------------------------------------------------------------------
Sat Jan 4 20:08:17 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- Update to release 24.3.2
--> https://docs.mesa3d.org/relnotes/24.3.2
- supersedes the following patches:
* 0001-dri-don-t-fetch-X11-modifiers-if-we-don-t-support-th.patch
* 0002-egl-wayland-only-supply-LINEAR-modifier-when-support.patch
* 0003-egl-wayland-fallback-to-implicit-modifiers-if-advert.patch
-------------------------------------------------------------------
Thu Dec 12 19:59:52 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- require llvm19/clang19 on sle15 >= sp6
-------------------------------------------------------------------
Mon Dec 9 19:04:25 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- aarch64: disable build of etnaviv driver on sle15-sp7 due to
python3-pycparser >= 2.20 not available
-------------------------------------------------------------------
Mon Dec 9 14:36:46 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- don't apply patches of previous changelog for s390x; Mesa 24.1.7
doesn't suffer from this issue, only Mesa 24.3.1 ...
-------------------------------------------------------------------
Sun Dec 8 21:58:37 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- 0001-dri-don-t-fetch-X11-modifiers-if-we-don-t-support-th.patch
0002-egl-wayland-only-supply-LINEAR-modifier-when-support.patch
0003-egl-wayland-fallback-to-implicit-modifiers-if-advert.patch
* fixes mesa 24.3.1 gallium crash/segfault on GPUs without
format modifiers (mesa issue#12253, mesa MR#32535, boo#1234302)
-------------------------------------------------------------------
Thu Dec 5 03:00:23 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- Update to release 24.3.1
--> https://docs.mesa3d.org/relnotes/24.3.1
-------------------------------------------------------------------
Wed Nov 27 23:10:50 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- trying to make buildservice happy by adding both tarballs to
specfile ...
-------------------------------------------------------------------
Tue Nov 26 18:20:06 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- on s390x build Mesa 24.1.7 to fix colors with Xvnc (boo#1233167)
- adjusted patches for Mesa 24.1.7:
* python36-buildfix1-s390x.patch
* u_dep_xcb-s390x.patch
* u_mesa-CVE-2023-45913-s390x.patch
-------------------------------------------------------------------
Fri Nov 22 10:35:29 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to release 24.3.0
--> https://docs.mesa3d.org/relnotes/24.3.0
-------------------------------------------------------------------
Thu Nov 21 05:09:35 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to release 24.3.0~rc2
--> https://www.phoronix.com/news/Mesa-24.3-rc2
- Update to release 24.3.0~rc1
--> https://www.phoronix.com/news/Mesa-24.3-rc1-Released
- refreshed patches:
* n_drirc-disable-rgb10-for-chromium-on-amd.patch
* python36-buildfix1.patch
* python36-buildfix2.patch
* tlsdesc_test.patch
* u_mesa-CVE-2023-45913.patch
* u_mesa-CVE-2023-45919.patch
* u_mesa-CVE-2023-45922.patch
* u_dep_xcb.patch
- drop no longer supported options:
* -Ddri3=enabled
* -Ddri-search-path=%{_libdir}/dri
- new files added in this update currently packaged as part of
Mesa-dri:
* %{_libdir}/gbm/dri_gbm.so
-------------------------------------------------------------------
Tue Nov 19 12:48:59 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- Update to release 24.2.7
--> https://docs.mesa3d.org/relnotes/24.2.7
- supersedes 0001-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch
-------------------------------------------------------------------
Wed Nov 6 17:34:15 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- 0001-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch
* fixes colors for 'swrast' driver (boo#1230637, gitlab issue#11840)
-------------------------------------------------------------------
Thu Oct 31 19:35:20 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to release 24.2.6
--> https://docs.mesa3d.org/relnotes/24.2.6
-------------------------------------------------------------------
Thu Oct 31 19:15:10 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- added -32bit package for Mesa-libva since it's needed by Steam;
reported on packman ML:
https://lists.links2linux.de/pipermail/packman/2024-October/017985.html
-------------------------------------------------------------------
Fri Oct 18 11:00:17 UTC 2024 - Andreas Färber <afaerber@suse.de>
- Enable intel Vulkan backends on riscv64 (boo#1231756)
- Enable iris Gallium backend on riscv64, Power and on Arm, too
-------------------------------------------------------------------
Thu Oct 17 10:16:01 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to release 24.2.5
--> https://docs.mesa3d.org/relnotes/24.2.5
- drop u_fix-llvm19-build.patch
included in upstream
-------------------------------------------------------------------
Thu Oct 3 19:00:29 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to release 24.2.4
--> https://docs.mesa3d.org/relnotes/24.2.4
-------------------------------------------------------------------
Tue Oct 1 11:08:36 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- u_mesa-CVE-2023-45913.patch
* NULL pointer dereference via dri2GetGlxDrawableFromXDrawableId()
(CVE-2023-45913, bsc#1222040)
- u_mesa-CVE-2023-45919.patch
* buffer over-read in glXQueryServerString()
(CVE-2023-45919, bsc#1222041)
- u_mesa-CVE-2023-45922.patch
* segmentation violation in __glXGetDrawableAttribute()
(CVE-2023-45922, bsc#1222042)
-------------------------------------------------------------------
Mon Sep 23 16:56:40 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- libvdpau_gallium was linked directly into libgallium-*.so.*.
Drop the subpackage and provides/obsolete it via Mesa-dri which
ships libgallium-*.so.*.
-------------------------------------------------------------------
Mon Sep 23 16:37:33 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- drop u_fix_rust_bindgen.patch
included in update
-------------------------------------------------------------------
Mon Sep 23 16:32:05 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to release 24.2.3
--> https://docs.mesa3d.org/relnotes/24.2.3
-------------------------------------------------------------------
Mon Sep 23 10:58:19 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- disable build of rusticl on sle15; meson is just too old ...
-------------------------------------------------------------------
Mon Sep 23 10:51:31 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- buildrequires: rusticl needs mesa >= 1.4.0
-------------------------------------------------------------------
Mon Sep 23 10:40:35 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- tlsdesc_test.patch: disable LTO in tlsdesc_test to suppress TLS
relaxation (patch by Andreas Schwab <schwab@suse.de>); see also
https://gitlab.freedesktop.org/mesa/mesa/-/issues/11929
-------------------------------------------------------------------
Mon Sep 23 10:36:35 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- buildrequire llvm19-devel/clang19-devel on sle15-sp7
-------------------------------------------------------------------
Sun Sep 22 12:02:17 UTC 2024 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Add u_fix-llvm19-build.patch to fix build with LLVM 19 on ARM.
- Update minimum version requirements based on meson.build.
- Fix build on s390x: apparently we don't have libvdpau_gallium.so.
-------------------------------------------------------------------
Fri Sep 13 17:39:59 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- drop U_egl-x11-sw-fix-partial-image-uploads.patch:
the code in the function saw further fixes later on in the 24.2
branch.
-------------------------------------------------------------------
Fri Sep 13 15:42:12 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- U_egl-x11-sw-fix-partial-image-uploads.patch
* culprit for the regression in 24.1.4; reverse apply this for
now (boo#1228164)
-------------------------------------------------------------------
Tue Sep 10 14:35:00 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- integrated changes by Andreas Schwab <schwab@suse.de>
* enable glamor also for driver build
* update rust crates
+ syn 2.0.39
+ proc_macro2 1.0.86
* enable valgrind also on riscv64
* added libvdpau_gallium package for generic VDPAU state tracker
* switch from "swrast" to "softpipe,llvmpipe" drivers
* use "-Dllvm-orcjit=true" for riscv64 build
* added libgallium to Mesa-dri package
-------------------------------------------------------------------
Tue Sep 10 13:38:59 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- re-disable llvm for non-driver build by switching from "swrast"
to "softpipe" for gallium drivers in that case
- make previous changelog a bit nicer
-------------------------------------------------------------------
Sun Sep 8 17:39:10 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to release 24.2.2
--> https://docs.mesa3d.org/relnotes/24.2.2
--> https://docs.mesa3d.org/relnotes/24.2.1
--> https://docs.mesa3d.org/relnotes/24.2.0
- refreshed the following patches with quilt:
* U_fix-mpeg1_2-decode-mesa-20.2.patch
* n_add-Mesa-headers-again.patch
* n_stop-iris-flicker.patch
* u_dep_xcb.patch
* u_fix_rust_bindgen.patch
- dropped U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch
- New BuildRequires:
* python3-PyYAML
- enable llvm also for non-driver build to fix:
"llvmpipe requires LLVM and is enabled, but LLVM is disabled".
-------------------------------------------------------------------
Thu Sep 5 19:20:59 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to bugfix release 24.1.7
--> https://docs.mesa3d.org/relnotes/24.1.7
- Supersedes the following patch:
* U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch
- Rebase patches with quilt.
-------------------------------------------------------------------
Sun Aug 25 09:04:57 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- Fix random GPU crash with AMDGPU (bsc#1229050):
U_radeonsi-vcn-Add-decode-DPB-buffers-as-CS-dependency.patch
(credits go to Takashi Iwai!)
-------------------------------------------------------------------
Wed Aug 21 16:53:28 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- fix build with current rust-bindgen
* u_fix_rust_bindgen.patch
-------------------------------------------------------------------
Thu Jul 4 12:26:06 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>

170
Mesa.spec
View File

@@ -1,7 +1,7 @@
#
# spec file for package Mesa
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -42,7 +42,11 @@
%define glamor 1
%define _name_archive mesa
%define _version 24.1.3
%ifnarch s390x
%define _version 24.3.3
%else
%define _version 24.1.7
%endif
%define with_opencl 0
%define with_rusticl 0
%define with_vulkan 0
@@ -85,14 +89,18 @@
%ifarch %{arm} aarch64
%define with_vulkan 1
%if 0%{?suse_version} > 1600
%define vulkan_drivers swrast,amd,broadcom,freedreno,intel,intel_hasvk,nouveau
%define vulkan_drivers swrast,amd,broadcom,freedreno,intel,intel_hasvk,nouveau,panfrost
%else
%define vulkan_drivers swrast,amd,broadcom,freedreno,intel,intel_hasvk
%if 0%{?suse_version} == 1600 && 0%{?is_opensuse}
%define vulkan_drivers swrast,amd,broadcom,freedreno,intel,intel_hasvk,panfrost
%else
%define vulkan_drivers swrast,amd,broadcom,freedreno,intel,intel_hasvk
%endif
%endif
%endif
%ifarch riscv64
%define with_vulkan 1
%define vulkan_drivers swrast,amd
%define vulkan_drivers swrast,amd,intel,intel_hasvk
%endif
%endif
@@ -107,8 +115,8 @@
%endif
%if "%{flavor}" == "drivers"
%define glamor 0
%if ((0%{?suse_version} >= 1550) || (0%{?sle_version} >= 150600)) && 0%{with_opencl}
%define glamor 1
%if 0%{?suse_version} >= 1550 && 0%{with_opencl}
%define with_rusticl 1
%endif
%else
@@ -139,13 +147,23 @@
# NVK aka Vulkan Nouveau dependencies
%global _unicode_ident_crate_ver 1.0.12
%global _syn_crate_ver 2.0.39
%global _syn_crate_ver 2.0.68
%global _quote_crate_ver 1.0.33
%global _proc_macro2_ver 1.0.70
%global _proc_macro2_ver 1.0.86
%global _paste_crate_ver 1.0.14
# Leap 15 and SLES 15 defaults to GCC 7, which does not have stable C++17 ABI.
# See https://bugzilla.suse.com/show_bug.cgi?id=1235697
%if 0%{?suse_version} < 1600
%define gcc_version 13
%endif
Name: Mesa%{psuffix}
Version: 24.1.3
%ifnarch s390x
Version: 24.3.3
%else
Version: 24.1.7
%endif
Release: 0
Summary: System for rendering 3-D graphics
License: MIT
@@ -173,33 +191,60 @@ Source9: manual-pages.tar.bz2
Source10: Mesa-rpmlintrc
Source11: Mesa.keyring
Source12: README-suse-maintenance.md
Source20: https://archive.mesa3d.org/%{_name_archive}-24.3.3.tar.xz
Source21: https://archive.mesa3d.org/%{_name_archive}-24.3.3.tar.xz.sig
Patch2: n_add-Mesa-headers-again.patch
Patch11: u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch
Patch12: u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch
%ifnarch s390x
Patch13: python36-buildfix1.patch
%else
Patch13: python36-buildfix1-s390x.patch
%endif
Patch14: python36-buildfix2.patch
Patch17: tlsdesc_test.patch
Patch18: U_loader_wayland-Fix-missing-timespec.h-include.patch
# never to be upstreamed
Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch
Patch58: u_dep_xcb.patch
Patch100: U_fix-mpeg1_2-decode-mesa-20.2.patch
Patch400: n_stop-iris-flicker.patch
%ifnarch s390x
Patch500: u_dep_xcb.patch
%else
Patch500: u_dep_xcb-s390x.patch
%endif
%ifnarch s390x
Patch600: U_egl-never-select-swrast-for-vmwgfx.patch
Patch700: U_gbm-fix-get_back_bo-failure-with-gbm_surface-and-imp.patch
Patch801: U_0001-svga-add-svga_resource_create_with_modifiers-functio.patch
Patch802: U_0002-svga-fix-printing-64-bit-value-for-32-bit-build.patch
%endif
%ifnarch s390x
Patch1222040: u_mesa-CVE-2023-45913.patch
%else
Patch1222040: u_mesa-CVE-2023-45913-s390x.patch
%endif
Patch1222041: u_mesa-CVE-2023-45919.patch
Patch1222042: u_mesa-CVE-2023-45922.patch
%ifarch %{ix86} x86_64
BuildRequires: DirectX-Headers
BuildRequires: DirectX-Headers >= 1.613.0
%endif
BuildRequires: bison
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: flex
%if 0%{?sle_version} >= 150400
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: gcc%{?gcc_version} >= 9
BuildRequires: gcc%{?gcc_version}-c++ >= 9
BuildRequires: glslang-devel
BuildRequires: imake
BuildRequires: libtool
BuildRequires: memory-constraints
BuildRequires: meson >= 0.60
%if 0%{with_rusticl}
BuildRequires: meson >= 1.4.0
%else
BuildRequires: meson >= 1.1.0
%endif
BuildRequires: pkgconfig
BuildRequires: python3-base
# dataclasses is in standard library of python >= 3.7
@@ -207,23 +252,24 @@ BuildRequires: python3-base
BuildRequires: python3-dataclasses
%endif
BuildRequires: python3-Mako
BuildRequires: python3-PyYAML
BuildRequires: python3-xml
BuildRequires: pkgconfig(dri2proto)
BuildRequires: pkgconfig(dri3proto)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(glproto)
BuildRequires: pkgconfig(libdrm) >= 2.4.75
BuildRequires: pkgconfig(libdrm_amdgpu) >= 2.4.95
BuildRequires: pkgconfig(libdrm) >= 2.4.109
BuildRequires: pkgconfig(libdrm_amdgpu) >= 2.4.121
BuildRequires: pkgconfig(libdrm_nouveau) >= 2.4.66
BuildRequires: pkgconfig(libdrm_radeon) >= 2.4.71
BuildRequires: pkgconfig(libglvnd) >= 0.1.0
%ifarch aarch64 x86_64 ppc64le s390x
BuildRequires: pkgconfig(libglvnd) >= 1.3.2
%ifarch aarch64 x86_64 ppc64le s390x riscv64
BuildRequires: pkgconfig(valgrind)
%endif
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(presentproto)
%if "%{flavor}" == "drivers"
BuildRequires: pkgconfig(vdpau) >= 1.1
BuildRequires: pkgconfig(vdpau) >= 1.5
%ifarch %{ix86} x86_64
BuildRequires: pkgconfig(vulkan)
%endif
@@ -260,12 +306,14 @@ Obsoletes: libXvMC_r600 < %{version}
Provides: libtxc_dxtn = %{version}
Obsoletes: libtxc_dxtn < %{version}
%ifarch %{arm} aarch64
%if 0%{?suse_version} >= 1550
BuildRequires: python3-pycparser >= 2.20
BuildRequires: pkgconfig(libdrm_etnaviv) >= 2.4.89
%endif
BuildRequires: pkgconfig(libdrm_freedreno) >= 2.4.74
BuildRequires: pkgconfig(libelf)
%endif
%ifarch x86_64 %{ix86} aarch64 %{arm}
%ifarch x86_64 %{ix86} aarch64 %{arm} riscv64
BuildRequires: libelf-devel
BuildRequires: pkgconfig(libdrm_intel) >= 2.4.75
%else
@@ -274,15 +322,15 @@ BuildRequires: libelf-devel
%endif
%endif
# Requirements for wayland bumped up from 17.0
BuildRequires: pkgconfig(wayland-client) >= 1.11
BuildRequires: pkgconfig(wayland-protocols) >= 1.8
BuildRequires: pkgconfig(wayland-server) >= 1.11
BuildRequires: pkgconfig(wayland-client) >= 1.18
BuildRequires: pkgconfig(wayland-protocols) >= 1.38
BuildRequires: pkgconfig(wayland-server) >= 1.18
%if 0%{with_llvm}
%if 0%{?suse_version} >= 1550
BuildRequires: llvm-devel
BuildRequires: llvm-devel >= 15
%else
%if 0%{?sle_version} >= 150500
BuildRequires: llvm18-devel
%if 0%{?sle_version} >= 150600
BuildRequires: llvm19-devel
%endif
%endif
%endif
@@ -291,8 +339,8 @@ BuildRequires: llvm18-devel
%if 0%{?suse_version} >= 1550
BuildRequires: clang-devel
%else
%if 0%{?sle_version} >= 150500
BuildRequires: clang18-devel
%if 0%{?sle_version} >= 150600
BuildRequires: clang19-devel
%endif
%endif
BuildRequires: libclc
@@ -551,6 +599,9 @@ Group: System/Libraries
Requires: Mesa = %{version}
Requires: libvulkan1
Supplements: Mesa
# merged into libgallium in 24.2.3
Provides: libvdpau_gallium = %{version}-%{release}
Obsoletes: libvdpau_gallium < %{version}-%{release}
%description -n Mesa-dri
This package contains Mesa DRI drivers for 3D acceleration.
@@ -830,14 +881,24 @@ cp %{SOURCE6} subprojects/packagecache/
%if 0%{?suse_version} < 1550
%patch -P 14 -p1
%endif
%patch -P 17 -p1
%patch -P 18 -p1
# no longer needed since gstreamer-plugins-vaapi 1.18.4
%if 0%{?suse_version} < 1550
%patch -P 54 -p1
%endif
%patch -P 58 -p1
%patch -P 100 -p1
%patch -P 400 -p1
%patch -P 500 -p1
%ifnarch s390x
%patch -P 600 -p1
%patch -P 700 -p1
%patch -P 801 -p1
%patch -P 802 -p1
%endif
%patch -P 1222040 -p1
%patch -P 1222041 -p1
%patch -P 1222042 -p1
# Remove requires to vulkan libs from baselibs.conf on platforms
# where vulkan build is disabled; ugly ...
%if 0%{?with_vulkan} == 0
@@ -850,7 +911,7 @@ grep -v -i vulkan "%{_sourcedir}/baselibs.conf" >"%{_sourcedir}/temp" && \
%ifarch ppc64 ppc64le
%limit_build -m 1024
%endif
%if 0%{?sle_version} >= 150400
%if 0%{?sle_version} >= 150400 || 0%{?suse_version} >= 1600
export CC=gcc-13
export CXX=g++-13
%endif
@@ -879,13 +940,12 @@ egl_platforms=x11,wayland
-Dvulkan-drivers= \
%endif
-Dxlib-lease=enabled \
-Dglvnd=true \
-Dglvnd=enabled \
-Dgles1=enabled \
-Dgles2=enabled \
-Degl=enabled \
-Dallow-kcmp=enabled \
-Dplatforms=$egl_platforms \
-Ddri3=enabled \
-Dshared-glapi=enabled \
%if 0%{?with_nine}
-Dgallium-nine=true \
@@ -903,7 +963,6 @@ egl_platforms=x11,wayland
-Drust_std=2021 \
%endif
%endif
-Ddri-search-path=%{_libdir}/dri \
%if 0%{with_llvm}
-Dllvm=enabled \
-Dshared-llvm=enabled \
@@ -925,24 +984,35 @@ egl_platforms=x11,wayland
-Dvulkan-drivers= \
%endif
%ifarch %{ix86} x86_64
-Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast,svga,virgl,iris,crocus,i915,d3d12,zink \
-Dgallium-drivers=r300,r600,radeonsi,nouveau,softpipe,llvmpipe,svga,virgl,iris,crocus,i915,d3d12,zink \
-Dgallium-d3d12-video=enabled \
-Dgallium-d3d12-graphics=enabled \
%else
%ifarch %{arm} aarch64
-Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl,freedreno,vc4,etnaviv,lima,panfrost,v3d,svga,tegra,zink \
%if 0%{?suse_version} >= 1550
-Dgallium-drivers=r300,r600,radeonsi,nouveau,softpipe,llvmpipe,virgl,iris,freedreno,vc4,etnaviv,lima,panfrost,v3d,svga,tegra,zink \
%else
-Dgallium-drivers=r300,r600,radeonsi,nouveau,softpipe,llvmpipe,virgl,iris,freedreno,vc4,lima,panfrost,v3d,svga,tegra,zink \
%endif
%else
%ifarch ppc64 ppc64le riscv64
-Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl,zink \
-Dgallium-drivers=r300,r600,radeonsi,nouveau,softpipe,llvmpipe,virgl,iris,zink \
%else
-Dgallium-drivers=swrast \
%endif
%endif
%endif
%ifarch riscv64
-Dllvm-orcjit=true \
%endif
%else
%ifnarch s390x
-Dgallium-drivers=softpipe \
%else
-Dgallium-drivers=swrast \
%endif
%ifarch aarch64 x86_64 ppc64le s390x
%endif
%ifarch aarch64 x86_64 ppc64le s390x riscv64
-Dvalgrind=enabled \
%endif
-Db_ndebug=true \
@@ -1005,14 +1075,18 @@ rm %{buildroot}/%{_libdir}/pkgconfig/dri.pc
# in KHR-devel
rm -rf %{buildroot}/%{_includedir}/KHR
# workaround needed since Mesa 19.0.2
rm -f %{buildroot}/%{_libdir}/vdpau/libvdpau_gallium.so
# in libgbm-devel
rm -f %{buildroot}%{_includedir}/gbm.h
rm -f %{buildroot}%{_libdir}/libgbm.so*
rm -f %{buildroot}%{_libdir}/pkgconfig/gbm.pc
%else
# package in Mesa-dri
rm -rf %{buildroot}/%{_datadir}/drirc.d
rm -f %{buildroot}/%{_libdir}/dri/*_dri.so
rm -f %{buildroot}%{_libdir}/libgallium-*.so
rm -rf %{buildroot}%{_libdir}/gbm/
rm -f %{buildroot}%{_libdir}/libGLES*
# glvnd needs a default provider for indirect rendering where it cannot
@@ -1139,6 +1213,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%{_includedir}/xa_*.h
%{_libdir}/libxatracker.so
%{_libdir}/pkgconfig/xatracker.pc
%endif
%if %{vdpau_nouveau}
@@ -1200,6 +1275,11 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%ifarch %{arm} aarch64
%exclude %{_libdir}/dri/vc4_dri.so
%endif
%ifnarch s390x
%{_libdir}/libgallium-%{_version}.so
%dir %{_libdir}/gbm/
%{_libdir}/gbm/dri_gbm.so
%endif
%if 0%{with_opencl}
# only built with opencl
@@ -1279,7 +1359,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%endif
%if 0%{with_vulkan}
%ifarch %{ix86} x86_64 aarch64 %{arm}
%ifarch %{ix86} x86_64 aarch64 %{arm} riscv64
%files -n libvulkan_intel
%dir %{_datadir}/vulkan
%dir %{_datadir}/vulkan/icd.d

View File

@@ -0,0 +1,55 @@
From b13e2a495e9e3da56add7d852ca01b2cd7eef52d Mon Sep 17 00:00:00 2001
From: Brian Paul <brian.paul@broadcom.com>
Date: Thu, 9 Jan 2025 22:45:34 -0700
Subject: [PATCH] svga: add svga_resource_create_with_modifiers() function
The dri_create_image() function returns early if the gallium
driver does not implement this function. Surface creation has
been broken for some time up to this fix.
Signed-off-by: Brian Paul <brian.paul@broadcom.com>
Reviewed-by: Neha Bhende <neha.Bhende@broadcom.com>
Reviewed-by: Neha Bhende <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32976>
---
src/gallium/drivers/svga/svga_resource.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/gallium/drivers/svga/svga_resource.c b/src/gallium/drivers/svga/svga_resource.c
index 80a4311854e..1775b65fab1 100644
--- a/src/gallium/drivers/svga/svga_resource.c
+++ b/src/gallium/drivers/svga/svga_resource.c
@@ -52,6 +52,22 @@ svga_resource_from_handle(struct pipe_screen * screen,
}
+static struct pipe_resource *
+svga_resource_create_with_modifiers(struct pipe_screen *screen,
+ const struct pipe_resource *templat,
+ const uint64_t *modifiers, int count)
+{
+ /* Not sure, but it seems there's no format modifiers
+ * to deal with here.
+ */
+ if (count > 0 && modifiers != NULL && modifiers[0] != 0) {
+ debug_printf("vmware: unexpected format modifier 0x%lx\n",
+ modifiers[0]);
+ }
+ return svga_resource_create(screen, templat);
+}
+
+
/**
* Check if a resource (texture, buffer) of the given size
* and format can be created.
@@ -121,6 +137,7 @@ void
svga_init_screen_resource_functions(struct svga_screen *is)
{
is->screen.resource_create = svga_resource_create;
+ is->screen.resource_create_with_modifiers = svga_resource_create_with_modifiers;
is->screen.resource_from_handle = svga_resource_from_handle;
is->screen.resource_get_handle = svga_resource_get_handle;
is->screen.resource_destroy = svga_resource_destroy;
--
2.43.0

View File

@@ -0,0 +1,39 @@
From 24107f2f67aab1e7304c0bbff77b1cef014673b9 Mon Sep 17 00:00:00 2001
From: Brian Paul <brian.paul@broadcom.com>
Date: Mon, 13 Jan 2025 06:36:48 -0700
Subject: [PATCH] svga: fix printing 64-bit value for 32-bit build
Closes: #12449, #12451
Fixes: b13e2a495e ("svga: add svga_resource_create_with_modifiers() function")
Signed-off-by: Brian Paul <brian.paul@broadcom.com>
Reviewed-by: Neha Bhende <neha.Bhende@broadcom.com>
Reviewed-by: Neha Bhende <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32995>
---
src/gallium/drivers/svga/svga_resource.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/svga/svga_resource.c b/src/gallium/drivers/svga/svga_resource.c
index 1775b65fab1..aa145de9ffe 100644
--- a/src/gallium/drivers/svga/svga_resource.c
+++ b/src/gallium/drivers/svga/svga_resource.c
@@ -5,6 +5,7 @@
* SPDX-License-Identifier: MIT
*/
+#include <inttypes.h>
#include "util/u_debug.h"
#include "svga_resource.h"
@@ -61,7 +62,7 @@ svga_resource_create_with_modifiers(struct pipe_screen *screen,
* to deal with here.
*/
if (count > 0 && modifiers != NULL && modifiers[0] != 0) {
- debug_printf("vmware: unexpected format modifier 0x%lx\n",
+ debug_printf("vmware: unexpected format modifier 0x%" PRIx64 "\n",
modifiers[0]);
}
return svga_resource_create(screen, templat);
--
2.43.0

View File

@@ -0,0 +1,30 @@
From f3b8d7da46a6ab2e63589bede37b35b0ae861af9 Mon Sep 17 00:00:00 2001
From: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Date: Mon, 20 Jan 2025 09:06:03 -0500
Subject: [PATCH] egl: never select swrast for vmwgfx
ForceSoftware will be true in this case from the high-level fallback,
but this isn't really swrast
Fixes: 1de7c86bc1a ("dri: pass through a type enum for creating screen instead of driver_extensions")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33123>
---
src/egl/drivers/dri2/egl_dri2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 6a43ad73d21..e813aa61f52 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -592,7 +592,7 @@ dri2_load_driver(_EGLDisplay *disp)
dri2_dpy->kopper = disp->Options.Zink && !debug_get_bool_option("LIBGL_KOPPER_DISABLE", false);
dri2_dpy->kopper_without_modifiers = dri2_dpy->kopper && debug_get_bool_option("LIBGL_KOPPER_DRI2", false);
- dri2_dpy->swrast = (disp->Options.ForceSoftware && !dri2_dpy->kopper) ||
+ dri2_dpy->swrast = (disp->Options.ForceSoftware && !dri2_dpy->kopper && strcmp(dri2_dpy->driver_name, "vmwgfx")) ||
!dri2_dpy->driver_name || strstr(dri2_dpy->driver_name, "swrast");
dri2_dpy->swrast_not_kms = dri2_dpy->swrast && (!dri2_dpy->driver_name || strcmp(dri2_dpy->driver_name, "kms_swrast"));
--
2.43.0

View File

@@ -3,11 +3,11 @@
src/gallium/drivers/r600/evergreen_state.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: mesa-23.3.0/src/gallium/drivers/r600/evergreen_state.c
Index: mesa-24.2.2/src/gallium/drivers/r600/evergreen_state.c
===================================================================
--- mesa-23.3.0.orig/src/gallium/drivers/r600/evergreen_state.c
+++ mesa-23.3.0/src/gallium/drivers/r600/evergreen_state.c
@@ -598,7 +598,8 @@ static void *evergreen_create_sampler_st
--- mesa-24.2.2.orig/src/gallium/drivers/r600/evergreen_state.c
+++ mesa-24.2.2/src/gallium/drivers/r600/evergreen_state.c
@@ -584,7 +584,8 @@ static void *evergreen_create_sampler_st
: state->max_anisotropy;
unsigned max_aniso_ratio = r600_tex_aniso_filter(max_aniso);
bool trunc_coord = state->min_img_filter == PIPE_TEX_FILTER_NEAREST &&

View File

@@ -0,0 +1,47 @@
From 5a19323d0e3969de24ea6bd89ba62f2a5c37296e Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Thu, 19 Dec 2024 17:35:46 +0100
Subject: [PATCH] gbm: fix get_back_bo() failure with gbm_surface and implicit
modifiers
Before 361f3622587e ("dri: Unify createImage and
createImageWithModifiers"), gbm_surface_create_with_modifiers() would
fail with ENOSYS on drivers missing explicit modifiers support. After
that commit, it succeeds and fails later when it tries to allocate a
new back buffer.
Restore the previous behavior.
Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: 105fcb9cfdb4 ("dri: revert INVALID modifier special-casing")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12283
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32726>
---
src/gbm/backends/dri/gbm_dri.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 9e2761c33b0..316b251dd74 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -1078,11 +1078,17 @@ gbm_dri_surface_create(struct gbm_device *gbm,
uint32_t format, uint32_t flags,
const uint64_t *modifiers, const unsigned count)
{
+ struct gbm_dri_device *dri = gbm_dri_device(gbm);
struct gbm_dri_surface *surf;
if (count)
assert(modifiers);
+ if (count > 0 && !dri->screen->base.screen->resource_create_with_modifiers) {
+ errno = ENOSYS;
+ return NULL;
+ }
+
/* It's acceptable to create an image with INVALID modifier in the list,
* but it cannot be on the only modifier (since it will certainly fail
* later). While we could easily catch this after modifier creation, doing
--
2.43.0

View File

@@ -0,0 +1,38 @@
From 54928d643ec0d201bf0101d67437b53d7fdbafad Mon Sep 17 00:00:00 2001
From: Karmjit Mahil <karmjit.mahil@igalia.com>
Date: Thu, 6 Feb 2025 10:34:49 +0100
Subject: [PATCH] loader/wayland: Fix missing timespec.h include
`loader_wayland_dispatch()` also makes use of `timespec` so we
need `timespec.h`. Otherwise it fails to build due to
`timespec_sub_saturate()` missing.
Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com>
Fixes: 90effcceab7 ("wsi/wayland: refactor wayland dispatch")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12580
Reviewed-by: Eric Engestrom <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33423>
---
src/loader/loader_wayland_helper.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/loader/loader_wayland_helper.h b/src/loader/loader_wayland_helper.h
index 45f412a6c7ba1..0d7c49a15f246 100644
--- a/src/loader/loader_wayland_helper.h
+++ b/src/loader/loader_wayland_helper.h
@@ -23,11 +23,10 @@
#ifndef LOADER_WAYLAND_HELPER_HEADER_H
#define LOADER_WAYLAND_HELPER_HEADER_H
+#include <util/timespec.h>
#include <wayland-client.h>
#ifndef HAVE_WL_DISPATCH_QUEUE_TIMEOUT
-
-#include <util/timespec.h>
int
wl_display_dispatch_queue_timeout(struct wl_display *display,
struct wl_event_queue *queue,
--
GitLab

View File

@@ -107,3 +107,4 @@ Mesa-dri
supplements "Mesa-<targettype> = <version>"
Mesa-gallium
supplements "Mesa-<targettype> = <version>"
Mesa-libva

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:63236426b25a745ba6aa2d6daf8cd769d5ea01887b0745ab7124d2ef33a9020d
size 29086488

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7cf7c6f665263ad0122889c1d4b076654c1eedea7a2f38c69c8c51579937ade1
size 29106920

Binary file not shown.

BIN
mesa-24.1.7.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
mesa-24.1.7.tar.xz.sig Normal file

Binary file not shown.

BIN
mesa-24.3.3.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
mesa-24.3.3.tar.xz.sig Normal file

Binary file not shown.

View File

@@ -1,8 +1,8 @@
Index: mesa-24.0.3/include/meson.build
Index: mesa-24.2.2/include/meson.build
===================================================================
--- mesa-24.0.3.orig/include/meson.build
+++ mesa-24.0.3/include/meson.build
@@ -28,7 +28,6 @@ if with_android_stub
--- mesa-24.2.2.orig/include/meson.build
+++ mesa-24.2.2/include/meson.build
@@ -12,7 +12,6 @@ if with_android_stub
inc_include += [include_directories('android_stub')]
endif
@@ -10,7 +10,7 @@ Index: mesa-24.0.3/include/meson.build
if with_gles1 or with_gles2 or with_opengl or with_egl
install_headers('KHR/khrplatform.h', subdir : 'KHR')
endif
@@ -84,7 +83,6 @@ if not with_glvnd and host_machine.syste
@@ -68,7 +67,6 @@ if not with_glvnd and host_machine.syste
subdir : 'EGL',
)
endif

View File

@@ -1,8 +1,8 @@
Index: mesa-23.2.0-rc4/src/util/00-mesa-defaults.conf
Index: mesa-24.3.0-rc1/src/util/00-mesa-defaults.conf
===================================================================
--- mesa-23.2.0-rc4.orig/src/util/00-mesa-defaults.conf
+++ mesa-23.2.0-rc4/src/util/00-mesa-defaults.conf
@@ -956,6 +956,14 @@ TODO: document the other workarounds.
--- mesa-24.3.0-rc1.orig/src/util/00-mesa-defaults.conf
+++ mesa-24.3.0-rc1/src/util/00-mesa-defaults.conf
@@ -1040,6 +1040,14 @@ TODO: document the other workarounds.
<application name="Rocket League" executable="RocketLeague">
<option name="radeonsi_zerovram" value="true" />
</application>

View File

@@ -4,11 +4,11 @@ Date: Tue May 24 14:47:53 2022 -0400
Adjusting 'iris_batch.c' per 'https://gitlab.freedesktop.org/mesa/mesa/-/issues/5731'.
Index: mesa-24.1.0/src/gallium/drivers/iris/i915/iris_kmd_backend.c
Index: mesa-24.2.2/src/gallium/drivers/iris/i915/iris_kmd_backend.c
===================================================================
--- mesa-24.1.0.orig/src/gallium/drivers/iris/i915/iris_kmd_backend.c
+++ mesa-24.1.0/src/gallium/drivers/iris/i915/iris_kmd_backend.c
@@ -317,7 +317,6 @@ i915_batch_submit(struct iris_batch *bat
--- mesa-24.2.2.orig/src/gallium/drivers/iris/i915/iris_kmd_backend.c
+++ mesa-24.2.2/src/gallium/drivers/iris/i915/iris_kmd_backend.c
@@ -318,7 +318,6 @@ i915_batch_submit(struct iris_batch *bat
uint32_t flags = EXEC_OBJECT_SUPPORTS_48B_ADDRESS | EXEC_OBJECT_PINNED;
flags |= bo->real.capture ? EXEC_OBJECT_CAPTURE : 0;
flags |= bo == batch->screen->workaround_bo ? EXEC_OBJECT_ASYNC : 0;

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b
size 44343

BIN
proc-macro2-1.0.86.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -0,0 +1,67 @@
Index: mesa-24.1.7/src/nouveau/headers/class_parser.py
===================================================================
--- mesa-24.1.7.orig/src/nouveau/headers/class_parser.py
+++ mesa-24.1.7/src/nouveau/headers/class_parser.py
@@ -9,6 +9,16 @@ import sys
from mako.template import Template
+def removeprefix(s, prefix):
+ if s.startswith(prefix):
+ return s[len(prefix):]
+ return s
+
+def removesuffix(s, suffix):
+ if s.endswith(suffix):
+ return s[:-len(suffix)]
+ return s
+
METHOD_ARRAY_SIZES = {
'BIND_GROUP_CONSTANT_BUFFER' : 16,
'CALL_MME_DATA' : 256,
@@ -293,7 +303,7 @@ def parse_header(nvcl, f):
if ":" in list[2]:
state = 1
elif teststr in list[1]:
- curmthd.field_defs[curfield][list[1].removeprefix(teststr)] = list[2]
+ curmthd.field_defs[curfield][removeprefix(list[1], teststr)] = list[2]
else:
state = 1
@@ -303,7 +313,7 @@ def parse_header(nvcl, f):
if ("0x" in list[2]):
state = 1
else:
- field = list[1].removeprefix(teststr)
+ field = removeprefix(list[1], teststr)
bitfield = list[2].split(":")
curmthd.field_name_start[field] = bitfield[1]
curmthd.field_name_end[field] = bitfield[0]
@@ -324,13 +334,13 @@ def parse_header(nvcl, f):
is_array = 0
if (':' in list[2]):
continue
- name = list[1].removeprefix(teststr)
+ name = removeprefix(list[1], teststr)
if name.endswith("(i)"):
is_array = 1
- name = name.removesuffix("(i)")
+ name = removesuffix(name, "(i)")
if name.endswith("(j)"):
is_array = 1
- name = name.removesuffix("(j)")
+ name = removesuffix(name, "(j)")
x = method()
x.name = name
x.addr = list[2]
@@ -357,8 +367,8 @@ def main():
clheader = os.path.basename(args.in_h)
nvcl = clheader
- nvcl = nvcl.removeprefix("cl")
- nvcl = nvcl.removesuffix(".h")
+ nvcl = removeprefix(nvcl, "cl")
+ nvcl = removesuffix(nvcl, ".h")
nvcl = nvcl.upper()
nvcl = "NV" + nvcl

View File

@@ -1,8 +1,8 @@
Index: mesa-24.1.0/src/nouveau/headers/class_parser.py
Index: mesa-24.3.0-rc1/src/nouveau/headers/class_parser.py
===================================================================
--- mesa-24.1.0.orig/src/nouveau/headers/class_parser.py
+++ mesa-24.1.0/src/nouveau/headers/class_parser.py
@@ -9,6 +9,16 @@ import sys
--- mesa-24.3.0-rc1.orig/src/nouveau/headers/class_parser.py
+++ mesa-24.3.0-rc1/src/nouveau/headers/class_parser.py
@@ -11,6 +11,16 @@ import subprocess
from mako.template import Template
@@ -17,9 +17,9 @@ Index: mesa-24.1.0/src/nouveau/headers/class_parser.py
+ return s
+
METHOD_ARRAY_SIZES = {
'BIND_GROUP_CONSTANT_BUFFER' : 16,
'CALL_MME_DATA' : 256,
@@ -293,7 +303,7 @@ def parse_header(nvcl, f):
'BIND_GROUP_CONSTANT_BUFFER' : 16,
'CALL_MME_DATA' : 256,
@@ -425,7 +435,7 @@ def parse_header(nvcl, f):
if ":" in list[2]:
state = 1
elif teststr in list[1]:
@@ -28,7 +28,7 @@ Index: mesa-24.1.0/src/nouveau/headers/class_parser.py
else:
state = 1
@@ -303,7 +313,7 @@ def parse_header(nvcl, f):
@@ -435,7 +445,7 @@ def parse_header(nvcl, f):
if ("0x" in list[2]):
state = 1
else:
@@ -37,7 +37,7 @@ Index: mesa-24.1.0/src/nouveau/headers/class_parser.py
bitfield = list[2].split(":")
curmthd.field_name_start[field] = bitfield[1]
curmthd.field_name_end[field] = bitfield[0]
@@ -324,13 +334,13 @@ def parse_header(nvcl, f):
@@ -456,13 +466,13 @@ def parse_header(nvcl, f):
is_array = 0
if (':' in list[2]):
continue
@@ -54,7 +54,7 @@ Index: mesa-24.1.0/src/nouveau/headers/class_parser.py
x = method()
x.name = name
x.addr = list[2]
@@ -357,8 +367,8 @@ def main():
@@ -552,8 +562,8 @@ def main():
clheader = os.path.basename(args.in_h)
nvcl = clheader

View File

@@ -1,6 +1,8 @@
--- mesa-23.3.3/src/freedreno/registers/gen_header.py.orig 2024-01-20 14:01:30.261999839 +0100
+++ mesa-23.3.3/src/freedreno/registers/gen_header.py 2024-01-20 14:01:57.678558692 +0100
@@ -781,7 +781,7 @@ def main():
Index: mesa-24.3.0-rc1/src/freedreno/registers/gen_header.py
===================================================================
--- mesa-24.3.0-rc1.orig/src/freedreno/registers/gen_header.py
+++ mesa-24.3.0-rc1/src/freedreno/registers/gen_header.py
@@ -957,7 +957,7 @@ def main():
parser.add_argument('--rnn', type=str, required=True)
parser.add_argument('--xml', type=str, required=True)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a
size 244129

BIN
syn-2.0.68.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

15
tlsdesc_test.patch Normal file
View File

@@ -0,0 +1,15 @@
LTO defeats the -fpic workaround and enables TLS relaxation anyway
Index: mesa-24.3.0-rc1/meson.build
===================================================================
--- mesa-24.3.0-rc1.orig/meson.build
+++ mesa-24.3.0-rc1/meson.build
@@ -516,7 +516,7 @@ if not have_mtls_dialect
foreach tlsdesc_arg : ['-mtls-dialect=gnu2', '-mtls-dialect=desc']
# -fpic to force dynamic tls, otherwise TLS relaxation defeats check
tlsdesc_test = cc.run('int __thread x; int main() { return x; }',
- args: [tlsdesc_arg, '-fpic'],
+ args: [tlsdesc_arg, '-fpic', '-fno-lto'],
name: tlsdesc_arg)
if tlsdesc_test.returncode() == 0 and (
# check for lld 13 bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5665

16
u_dep_xcb-s390x.patch Normal file
View File

@@ -0,0 +1,16 @@
Index: mesa-24.2.2/meson.build
===================================================================
--- mesa-24.2.2.orig/meson.build
+++ mesa-24.2.2/meson.build
@@ -2145,9 +2145,11 @@ if with_platform_x11
endif
endif
if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm')
+ dep_x11_xcb = dependency('x11-xcb')
dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8')
if with_dri3
+ dep_xcb = dependency('xcb')
dep_xcb_dri3 = dependency('xcb-dri3')
dep_xcb_present = dependency('xcb-present')
# until xcb-dri3 has been around long enough to make a hard-dependency:

View File

@@ -1,16 +1,15 @@
Index: mesa-24.0.3/meson.build
Index: mesa-24.3.0/meson.build
===================================================================
--- mesa-24.0.3.orig/meson.build
+++ mesa-24.0.3/meson.build
@@ -2069,9 +2069,11 @@ if with_platform_x11
--- mesa-24.3.0.orig/meson.build
+++ mesa-24.3.0/meson.build
@@ -2103,8 +2103,10 @@ if with_platform_x11
endif
endif
if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm')
if with_dri_platform == 'drm'
+ dep_x11_xcb = dependency('x11-xcb')
dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8')
dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8', required : with_x11_dri2)
if with_dri3
+ dep_xcb = dependency('xcb')
dep_xcb_dri3 = dependency('xcb-dri3')
dep_xcb_present = dependency('xcb-present')
# until xcb-dri3 has been around long enough to make a hard-dependency:
+ dep_xcb = dependency('xcb')
dep_xcb_dri3 = dependency('xcb-dri3', version : '>= 1.13')
dep_xcb_present = dependency('xcb-present', version : '>= 1.13')
if (dep_xcb_dri3.version().version_compare('>= 1.17') and

View File

@@ -0,0 +1,13 @@
src/glx/dri2_glx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -1399,7 +1399,7 @@ dri2GetGlxDrawableFromXDrawableId(Displa
struct dri2_display *pdp = (struct dri2_display *) d->dri2Display;
__GLXDRIdrawable *pdraw;
- if (__glxHashLookup(pdp->dri2Hash, id, (void *) &pdraw) == 0)
+ if (pdp && __glxHashLookup(pdp->dri2Hash, id, (void *) &pdraw) == 0)
return pdraw;
return NULL;

View File

@@ -0,0 +1,15 @@
src/glx/dri2_glx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: mesa-24.3.0-rc1/src/glx/dri2_glx.c
===================================================================
--- mesa-24.3.0-rc1.orig/src/glx/dri2_glx.c
+++ mesa-24.3.0-rc1/src/glx/dri2_glx.c
@@ -756,7 +756,7 @@ dri2GetGlxDrawableFromXDrawableId(Displa
struct glx_display *d = __glXInitialize(dpy);
__GLXDRIdrawable *pdraw;
- if (__glxHashLookup(d->dri2Hash, id, (void *) &pdraw) == 0)
+ if (d && __glxHashLookup(d->dri2Hash, id, (void *) &pdraw) == 0)
return pdraw;
return NULL;

View File

@@ -0,0 +1,33 @@
src/glx/glx_query.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
Index: mesa-24.3.0-rc1/src/glx/glx_query.c
===================================================================
--- mesa-24.3.0-rc1.orig/src/glx/glx_query.c
+++ mesa-24.3.0-rc1/src/glx/glx_query.c
@@ -56,6 +56,13 @@ __glXQueryServerString(Display * dpy, CA
/* The spec doesn't mention this, but the Xorg server replies with
* a string already terminated with '\0'. */
uint32_t len = xcb_glx_query_server_string_string_length(reply);
+ /* Allow a max of 64kb string length */
+ size_t reply_len = strnlen(xcb_glx_query_server_string_string(reply), 64*1024);
+ if (reply_len + 1 != len)
+ {
+ free(reply);
+ return(NULL);
+ }
char *buf = malloc(len);
memcpy(buf, xcb_glx_query_server_string_string(reply), len);
free(reply);
@@ -83,6 +90,12 @@ __glXGetString(Display * dpy, CARD32 con
/* The spec doesn't mention this, but the Xorg server replies with
* a string already terminated with '\0'. */
uint32_t len = xcb_glx_get_string_string_length(reply);
+ size_t reply_len = strnlen(xcb_glx_get_string_string(reply), 64*1024);
+ if (reply_len + 1 != len)
+ {
+ free(reply);
+ return(NULL);
+ }
char *buf = malloc(len);
memcpy(buf, xcb_glx_get_string_string(reply), len);
free(reply);

View File

@@ -0,0 +1,15 @@
src/glx/glx_pbuffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: mesa-24.3.0-rc1/src/glx/glx_pbuffer.c
===================================================================
--- mesa-24.3.0-rc1.orig/src/glx/glx_pbuffer.c
+++ mesa-24.3.0-rc1/src/glx/glx_pbuffer.c
@@ -338,7 +338,7 @@ __glXGetDrawableAttribute(Display * dpy,
/* Search the set of returned attributes for the attribute requested by
* the caller.
*/
- for (i = 0; i < num_attributes; i++) {
+ for (i = 0; i < num_attributes && i * 2 + 1 < length; i++) {
if (data[i * 2] == attribute) {
found = 1;
*value = data[(i * 2) + 1];