Stefan Dirsch
3480334669
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
41 lines
2.0 KiB
Diff
41 lines
2.0 KiB
Diff
From 93e96da9458c9d0348f2390dc0bea67cf140b1a0 Mon Sep 17 00:00:00 2001
|
|
From: Karol Herbst <kherbst@redhat.com>
|
|
Date: Sun, 18 Aug 2024 00:08:50 +0200
|
|
Subject: [PATCH] rusticl: do not use CL vector types in bindings and code
|
|
|
|
Bindgen seems to miscompile them and I kinda thought I've done this
|
|
already in the past, but apparently not.
|
|
|
|
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11722
|
|
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30710>
|
|
---
|
|
src/gallium/frontends/rusticl/api/device.rs | 2 +-
|
|
src/gallium/frontends/rusticl/meson.build | 1 +
|
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
Index: mesa-24.2.2/src/gallium/frontends/rusticl/api/device.rs
|
|
===================================================================
|
|
--- mesa-24.2.2.orig/src/gallium/frontends/rusticl/api/device.rs
|
|
+++ mesa-24.2.2/src/gallium/frontends/rusticl/api/device.rs
|
|
@@ -196,7 +196,7 @@ impl CLInfo<cl_device_info> for cl_devic
|
|
// TODO proper retrival from devices
|
|
CL_DEVICE_MEM_BASE_ADDR_ALIGN => cl_prop::<cl_uint>(0x1000),
|
|
CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE => {
|
|
- cl_prop::<cl_uint>(size_of::<cl_ulong16>() as cl_uint)
|
|
+ cl_prop::<cl_uint>(16 * size_of::<cl_ulong>() as cl_uint)
|
|
}
|
|
CL_DEVICE_NAME => cl_prop::<&str>(&dev.screen().name()),
|
|
CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR => cl_prop::<cl_uint>(1),
|
|
Index: mesa-24.2.2/src/gallium/frontends/rusticl/meson.build
|
|
===================================================================
|
|
--- mesa-24.2.2.orig/src/gallium/frontends/rusticl/meson.build
|
|
+++ mesa-24.2.2/src/gallium/frontends/rusticl/meson.build
|
|
@@ -158,6 +158,7 @@ rusticl_opencl_bindings_rs = rust.bindge
|
|
'--raw-line', 'unsafe impl std::marker::Sync for _cl_image_desc {}',
|
|
'--allowlist-type', 'cl_.*',
|
|
'--allowlist-type', 'cl.*_fn',
|
|
+ '--blocklist-type', '(__)?cl_.*[2348(16)]',
|
|
'--allowlist-var', 'CL_.*',
|
|
# needed for gl_sharing extension
|
|
'--allowlist-var', 'GL_.*',
|