diff --git a/Mesa-drivers.changes b/Mesa-drivers.changes index de4afcd..e94d67b 100644 --- a/Mesa-drivers.changes +++ b/Mesa-drivers.changes @@ -1,3 +1,59 @@ +------------------------------------------------------------------- +Wed Feb 20 15:40:14 UTC 2019 - sndirsch@suse.com + +- remove n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch; + keeping that one reintroduced render errors and missing screen + refreshes on GNOME3 in a qemu VM (cirrus emulation); the issue has + been fixed in a different and better way since 18.3.3; this is + related to bsc#1118149 + +------------------------------------------------------------------- +Tue Feb 19 08:34:39 UTC 2019 - sndirsch@suse.com + +- Update to 18.3.4 + * A fix in the XvMC state-tracker, which was causing some video attributes to + not take affect. On the video front the VAAPI state tracker has seen + improvements with VP9 streams while the amdgpu driver advertises all available + profiles. + * On Intel side we have compiler fixes and extra PCI IDs for Coffee Lake and + Ice Lake parts. In the Broadcom drivers a couple of memory leaks were + addressed and the NEON assembly should compile properly on armhf. + * Other drivers such as radeonsi, nouveau and freedreno have also seen some + love. The RADV driver has seen addressed to compile correctly with GCC9 + amongst other changes. + * The Xlib based libGL have been addressed to work with X servers, which lacks + the MIT-SHM extension such as XMing. + * To top it up we have a few fixes to the meson build system. + +------------------------------------------------------------------- +Mon Feb 4 17:49:03 UTC 2019 - sndirsch@suse.com + +- Update to 18.3.3 + * In this release we have: + A memory leak fix in the etnaviv driver, better NEON assembly code in vc4 and + couple of stability improvements to the radeonsi driver. Another memory leak + affecting all gallium drivers have also been addressed. + * The time required to compile GLSL shaders with large amount of uniforms, such + as Godot, has been improved. + * GLX and swrast have also seen some improvements. + * On the Vulkan side, the ANV driver adjusted the number of images supported + for gen8 and earlier to 8, while for newer hardware it remains the same 64. + The RADV driver has seens a collection of stability improvements and fix for + the Vulkan version advertised in some corner cases. + * To top it all up, the meson build system has seen a steady amount of fixes: + the DSO version for the VDPAU drivers is now included, ICC compatibility + patches, opencl handling and relaxed handling when building osmesa. +- adjusted n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch + +------------------------------------------------------------------- +Mon Jan 21 18:29:27 UTC 2019 - Tobias Klausmann + +- Build Mesa with meson instead of automake + + Build classic swrast with Mesa, as its a dependency for osmesa - delete it + while installing + + Build egl with Mesa-drivers as it demands one windowing-system - + delete it while installing + ------------------------------------------------------------------- Fri Jan 18 18:32:13 UTC 2019 - sndirsch@suse.com diff --git a/Mesa-drivers.spec b/Mesa-drivers.spec index 851e6fa..dda776f 100644 --- a/Mesa-drivers.spec +++ b/Mesa-drivers.spec @@ -42,7 +42,7 @@ %define glamor 1 %define _name_archive mesa -%define _version 18.3.2 +%define _version 18.3.4 %define with_opencl 0 %define with_vulkan 0 %define with_llvm 0 @@ -112,7 +112,7 @@ %endif Name: Mesa-drivers -Version: 18.3.2 +Version: 18.3.4 Release: 0 Summary: System for rendering 3-D graphics License: MIT @@ -138,14 +138,13 @@ Patch31: archlinux_0001-Fix-linkage-against-shared-glapi.patch Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch Patch57: u_wayland_egl-Ensure-EGL-surface.patch -Patch60: n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch - -BuildRequires: autoconf >= 2.60 -BuildRequires: automake +BuildRequires: bison BuildRequires: fdupes +BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: imake BuildRequires: libtool +BuildRequires: meson BuildRequires: pkgconfig BuildRequires: python3-base %if 0%{?suse_version} > 1320 @@ -741,7 +740,6 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch54 -p1 %patch57 -p1 -%patch60 -p1 # Remove requires to libglvnd/libglvnd-devel from baselibs.conf when # disabling libglvnd build; ugly ... @@ -763,83 +761,83 @@ egl_platforms=x11,drm,surfaceless,wayland %else egl_platforms=x11,drm,surfaceless %endif -autoreconf -fvi -export PYTHON2=%{_bindir}/python3 -%configure \ +%meson \ + --auto-features=disabled \ %if %{drivers} - --disable-gles1 \ - --disable-gles2 \ - --disable-egl \ - --disable-glx \ - --disable-osmesa \ + -Dgles1=false \ + -Dgles2=false \ + -Degl=true \ + -Dglx=disabled \ + -Dosmesa=none \ %else %if 0%{?libglvnd} - --enable-libglvnd \ + -Dglvnd=true \ %endif - --enable-gles1 \ - --enable-gles2 \ - --enable-egl \ - --enable-osmesa \ + -Dgles1=true \ + -Dgles2=true \ + -Degl=true \ + -Dosmesa=classic \ + -Dglx=auto \ + -Dllvm=false \ + -Dvulkan-drivers= \ %endif - --with-platforms=$egl_platforms \ - --enable-dri \ - --enable-texture-float \ - --enable-dri3 \ - --enable-shared-glapi \ + -Dplatforms=$egl_platforms \ + -Ddri3=true \ + -Dshared-glapi=true \ %if 0%{?with_nine} - --enable-nine \ + -Dgallium-nine=true \ %endif %if %{glamor} - --enable-gbm \ - --enable-glx-tls \ + -Dgbm=true \ %endif %if 0%{with_opencl} - --enable-opencl \ - --enable-opencl-icd \ + -Dgallium-opencl=icd \ %endif - --with-dri-searchpath=%{_libdir}/dri \ + -Ddri-search-path=%{_libdir}/dri \ %if 0%{with_llvm} - --enable-llvm \ - --enable-llvm-shared-libs \ + -Dllvm=true \ + -Dshared-llvm=true \ %endif %if %{drivers} - --enable-vdpau \ -%endif - --enable-va \ - --enable-xvmc \ + -Dgallium-vdpau=true \ + -Dgallium-xvmc=true \ + -Dgallium-va=true \ %if 0%{with_vulkan} - --with-vulkan-drivers=intel,radeon \ + -Dvulkan-drivers=intel,amd \ +%endif %endif %if %{drivers} %ifarch %{ix86} x86_64 - --enable-xa \ - --with-dri-drivers=i915,i965,nouveau,r200,radeon \ - --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,svga,virgl \ + -Dgallium-xa=true \ + -Ddri-drivers=i915,i965,nouveau,r100,r200 \ + -Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast,svga,virgl \ %endif %ifarch %{arm} aarch64 - --enable-xa \ - --with-dri-drivers=nouveau \ - --with-gallium-drivers=r300,r600,nouveau,swrast,virgl,freedreno,vc4,etnaviv,imx \ + -Dgallium-xa=true \ + -Ddri-drivers=nouveau \ + -Dgallium-drivers=r300,r600,nouveau,swrast,virgl,freedreno,vc4,etnaviv,imx \ %endif %ifarch ppc64 ppc64le - --enable-xa \ - --with-dri-drivers=nouveau \ - --with-gallium-drivers=r300,r600,nouveau,swrast \ + -Dgallium-xa=true \ + -Ddri-drivers=nouveau \ + -Dgallium-drivers=r300,r600,nouveau,swrast \ %endif %ifarch ia64 ppc hppa s390 s390x riscv64 - --with-dri-drivers=swrast \ - --with-gallium-drivers=swrast \ + -Ddri-drivers=swrast \ + -Dgallium-drivers=swrast \ %endif %else - --with-dri-drivers= \ - --with-gallium-drivers= \ + -Ddri-drivers=swrast \ + -Dgallium-drivers= \ %endif - CFLAGS="%{optflags} -DNDEBUG" -make %{?_smp_mflags} V=1 + -Db_ndebug=true \ + -Dc_args="%{optflags}" + +%meson_build %install -%make_install +%meson_install find %{buildroot} -type f -name "*.la" -delete -print # libwayland-egl is provided by wayland itself @@ -853,6 +851,15 @@ rm -f %{buildroot}/%{_libdir}/pkgconfig/wayland-egl.pc # in Mesa rm -rf %{buildroot}/%{_datadir}/drirc.d +rm -f %{buildroot}/%{_libdir}/libEGL.so* +# in Mesa-libEGL-devel +rm %{buildroot}/%{_includedir}/EGL/egl.h +rm %{buildroot}/%{_includedir}/EGL/eglext.h +rm %{buildroot}/%{_includedir}/EGL/eglextchromium.h +rm %{buildroot}/%{_includedir}/EGL/eglmesaext.h +rm %{buildroot}/%{_includedir}/EGL/eglplatform.h +rm %{buildroot}/%{_libdir}/pkgconfig/egl.pc + # in Mesa-libGL-devel rm -rf %{buildroot}/%{_includedir}/GL @@ -875,6 +882,9 @@ rm %{buildroot}/%{_libdir}/pkgconfig/gbm.pc rm -rf %{buildroot}/%{_includedir}/KHR %else + +rm -rf %{buildroot}/%{_libdir}/dri/swrast_dri.so + %if 0%{?libglvnd} == 0 # Make a symlink to libGL.so.1.2 for compatibility (bnc#809359, bnc#831306) test -f %{buildroot}%{_libdir}/libGL.so.1.2 || \ @@ -1049,15 +1059,15 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen %if %{xvmc_support} %files -n libXvMC_nouveau %{_libdir}/libXvMCnouveau.so -%{_libdir}/libXvMCnouveau.so.1 -%{_libdir}/libXvMCnouveau.so.1.0 -%{_libdir}/libXvMCnouveau.so.1.0.0 +#%{_libdir}/libXvMCnouveau.so.1 +#%{_libdir}/libXvMCnouveau.so.1.0 +#%{_libdir}/libXvMCnouveau.so.1.0.0 %files -n libXvMC_r600 %{_libdir}/libXvMCr600.so -%{_libdir}/libXvMCr600.so.1 -%{_libdir}/libXvMCr600.so.1.0 -%{_libdir}/libXvMCr600.so.1.0.0 +#%{_libdir}/libXvMCr600.so.1 +#%{_libdir}/libXvMCr600.so.1.0 +#%{_libdir}/libXvMCr600.so.1.0.0 %endif %if %{vdpau_nouveau} diff --git a/Mesa.changes b/Mesa.changes index de4afcd..e94d67b 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,59 @@ +------------------------------------------------------------------- +Wed Feb 20 15:40:14 UTC 2019 - sndirsch@suse.com + +- remove n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch; + keeping that one reintroduced render errors and missing screen + refreshes on GNOME3 in a qemu VM (cirrus emulation); the issue has + been fixed in a different and better way since 18.3.3; this is + related to bsc#1118149 + +------------------------------------------------------------------- +Tue Feb 19 08:34:39 UTC 2019 - sndirsch@suse.com + +- Update to 18.3.4 + * A fix in the XvMC state-tracker, which was causing some video attributes to + not take affect. On the video front the VAAPI state tracker has seen + improvements with VP9 streams while the amdgpu driver advertises all available + profiles. + * On Intel side we have compiler fixes and extra PCI IDs for Coffee Lake and + Ice Lake parts. In the Broadcom drivers a couple of memory leaks were + addressed and the NEON assembly should compile properly on armhf. + * Other drivers such as radeonsi, nouveau and freedreno have also seen some + love. The RADV driver has seen addressed to compile correctly with GCC9 + amongst other changes. + * The Xlib based libGL have been addressed to work with X servers, which lacks + the MIT-SHM extension such as XMing. + * To top it up we have a few fixes to the meson build system. + +------------------------------------------------------------------- +Mon Feb 4 17:49:03 UTC 2019 - sndirsch@suse.com + +- Update to 18.3.3 + * In this release we have: + A memory leak fix in the etnaviv driver, better NEON assembly code in vc4 and + couple of stability improvements to the radeonsi driver. Another memory leak + affecting all gallium drivers have also been addressed. + * The time required to compile GLSL shaders with large amount of uniforms, such + as Godot, has been improved. + * GLX and swrast have also seen some improvements. + * On the Vulkan side, the ANV driver adjusted the number of images supported + for gen8 and earlier to 8, while for newer hardware it remains the same 64. + The RADV driver has seens a collection of stability improvements and fix for + the Vulkan version advertised in some corner cases. + * To top it all up, the meson build system has seen a steady amount of fixes: + the DSO version for the VDPAU drivers is now included, ICC compatibility + patches, opencl handling and relaxed handling when building osmesa. +- adjusted n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch + +------------------------------------------------------------------- +Mon Jan 21 18:29:27 UTC 2019 - Tobias Klausmann + +- Build Mesa with meson instead of automake + + Build classic swrast with Mesa, as its a dependency for osmesa - delete it + while installing + + Build egl with Mesa-drivers as it demands one windowing-system - + delete it while installing + ------------------------------------------------------------------- Fri Jan 18 18:32:13 UTC 2019 - sndirsch@suse.com diff --git a/Mesa.spec b/Mesa.spec index 5fd5e5b..af2cf06 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -41,7 +41,7 @@ %define glamor 1 %define _name_archive mesa -%define _version 18.3.2 +%define _version 18.3.4 %define with_opencl 0 %define with_vulkan 0 %define with_llvm 0 @@ -111,7 +111,7 @@ %endif Name: Mesa -Version: 18.3.2 +Version: 18.3.4 Release: 0 Summary: System for rendering 3-D graphics License: MIT @@ -137,14 +137,13 @@ Patch31: archlinux_0001-Fix-linkage-against-shared-glapi.patch Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch Patch57: u_wayland_egl-Ensure-EGL-surface.patch -Patch60: n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch - -BuildRequires: autoconf >= 2.60 -BuildRequires: automake +BuildRequires: bison BuildRequires: fdupes +BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: imake BuildRequires: libtool +BuildRequires: meson BuildRequires: pkgconfig BuildRequires: python3-base %if 0%{?suse_version} > 1320 @@ -740,7 +739,6 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch54 -p1 %patch57 -p1 -%patch60 -p1 # Remove requires to libglvnd/libglvnd-devel from baselibs.conf when # disabling libglvnd build; ugly ... @@ -762,83 +760,83 @@ egl_platforms=x11,drm,surfaceless,wayland %else egl_platforms=x11,drm,surfaceless %endif -autoreconf -fvi -export PYTHON2=%{_bindir}/python3 -%configure \ +%meson \ + --auto-features=disabled \ %if %{drivers} - --disable-gles1 \ - --disable-gles2 \ - --disable-egl \ - --disable-glx \ - --disable-osmesa \ + -Dgles1=false \ + -Dgles2=false \ + -Degl=true \ + -Dglx=disabled \ + -Dosmesa=none \ %else %if 0%{?libglvnd} - --enable-libglvnd \ + -Dglvnd=true \ %endif - --enable-gles1 \ - --enable-gles2 \ - --enable-egl \ - --enable-osmesa \ + -Dgles1=true \ + -Dgles2=true \ + -Degl=true \ + -Dosmesa=classic \ + -Dglx=auto \ + -Dllvm=false \ + -Dvulkan-drivers= \ %endif - --with-platforms=$egl_platforms \ - --enable-dri \ - --enable-texture-float \ - --enable-dri3 \ - --enable-shared-glapi \ + -Dplatforms=$egl_platforms \ + -Ddri3=true \ + -Dshared-glapi=true \ %if 0%{?with_nine} - --enable-nine \ + -Dgallium-nine=true \ %endif %if %{glamor} - --enable-gbm \ - --enable-glx-tls \ + -Dgbm=true \ %endif %if 0%{with_opencl} - --enable-opencl \ - --enable-opencl-icd \ + -Dgallium-opencl=icd \ %endif - --with-dri-searchpath=%{_libdir}/dri \ + -Ddri-search-path=%{_libdir}/dri \ %if 0%{with_llvm} - --enable-llvm \ - --enable-llvm-shared-libs \ + -Dllvm=true \ + -Dshared-llvm=true \ %endif %if %{drivers} - --enable-vdpau \ -%endif - --enable-va \ - --enable-xvmc \ + -Dgallium-vdpau=true \ + -Dgallium-xvmc=true \ + -Dgallium-va=true \ %if 0%{with_vulkan} - --with-vulkan-drivers=intel,radeon \ + -Dvulkan-drivers=intel,amd \ +%endif %endif %if %{drivers} %ifarch %{ix86} x86_64 - --enable-xa \ - --with-dri-drivers=i915,i965,nouveau,r200,radeon \ - --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast,svga,virgl \ + -Dgallium-xa=true \ + -Ddri-drivers=i915,i965,nouveau,r100,r200 \ + -Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast,svga,virgl \ %endif %ifarch %{arm} aarch64 - --enable-xa \ - --with-dri-drivers=nouveau \ - --with-gallium-drivers=r300,r600,nouveau,swrast,virgl,freedreno,vc4,etnaviv,imx \ + -Dgallium-xa=true \ + -Ddri-drivers=nouveau \ + -Dgallium-drivers=r300,r600,nouveau,swrast,virgl,freedreno,vc4,etnaviv,imx \ %endif %ifarch ppc64 ppc64le - --enable-xa \ - --with-dri-drivers=nouveau \ - --with-gallium-drivers=r300,r600,nouveau,swrast \ + -Dgallium-xa=true \ + -Ddri-drivers=nouveau \ + -Dgallium-drivers=r300,r600,nouveau,swrast \ %endif %ifarch ia64 ppc hppa s390 s390x riscv64 - --with-dri-drivers=swrast \ - --with-gallium-drivers=swrast \ + -Ddri-drivers=swrast \ + -Dgallium-drivers=swrast \ %endif %else - --with-dri-drivers= \ - --with-gallium-drivers= \ + -Ddri-drivers=swrast \ + -Dgallium-drivers= \ %endif - CFLAGS="%{optflags} -DNDEBUG" -make %{?_smp_mflags} V=1 + -Db_ndebug=true \ + -Dc_args="%{optflags}" + +%meson_build %install -%make_install +%meson_install find %{buildroot} -type f -name "*.la" -delete -print # libwayland-egl is provided by wayland itself @@ -852,6 +850,15 @@ rm -f %{buildroot}/%{_libdir}/pkgconfig/wayland-egl.pc # in Mesa rm -rf %{buildroot}/%{_datadir}/drirc.d +rm -f %{buildroot}/%{_libdir}/libEGL.so* +# in Mesa-libEGL-devel +rm %{buildroot}/%{_includedir}/EGL/egl.h +rm %{buildroot}/%{_includedir}/EGL/eglext.h +rm %{buildroot}/%{_includedir}/EGL/eglextchromium.h +rm %{buildroot}/%{_includedir}/EGL/eglmesaext.h +rm %{buildroot}/%{_includedir}/EGL/eglplatform.h +rm %{buildroot}/%{_libdir}/pkgconfig/egl.pc + # in Mesa-libGL-devel rm -rf %{buildroot}/%{_includedir}/GL @@ -874,6 +881,9 @@ rm %{buildroot}/%{_libdir}/pkgconfig/gbm.pc rm -rf %{buildroot}/%{_includedir}/KHR %else + +rm -rf %{buildroot}/%{_libdir}/dri/swrast_dri.so + %if 0%{?libglvnd} == 0 # Make a symlink to libGL.so.1.2 for compatibility (bnc#809359, bnc#831306) test -f %{buildroot}%{_libdir}/libGL.so.1.2 || \ @@ -1048,15 +1058,15 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen %if %{xvmc_support} %files -n libXvMC_nouveau %{_libdir}/libXvMCnouveau.so -%{_libdir}/libXvMCnouveau.so.1 -%{_libdir}/libXvMCnouveau.so.1.0 -%{_libdir}/libXvMCnouveau.so.1.0.0 +#%{_libdir}/libXvMCnouveau.so.1 +#%{_libdir}/libXvMCnouveau.so.1.0 +#%{_libdir}/libXvMCnouveau.so.1.0.0 %files -n libXvMC_r600 %{_libdir}/libXvMCr600.so -%{_libdir}/libXvMCr600.so.1 -%{_libdir}/libXvMCr600.so.1.0 -%{_libdir}/libXvMCr600.so.1.0.0 +#%{_libdir}/libXvMCr600.so.1 +#%{_libdir}/libXvMCr600.so.1.0 +#%{_libdir}/libXvMCr600.so.1.0.0 %endif %if %{vdpau_nouveau} diff --git a/mesa-18.3.2.tar.xz b/mesa-18.3.2.tar.xz deleted file mode 100644 index 636f306..0000000 --- a/mesa-18.3.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f7ce7181c07b6d8e0132da879af1729523a6c8aa87f79a9d59dfd064024cfb35 -size 11868440 diff --git a/mesa-18.3.2.tar.xz.sig b/mesa-18.3.2.tar.xz.sig deleted file mode 100644 index 60e1f6a..0000000 Binary files a/mesa-18.3.2.tar.xz.sig and /dev/null differ diff --git a/mesa-18.3.4.tar.xz b/mesa-18.3.4.tar.xz new file mode 100644 index 0000000..a58df44 --- /dev/null +++ b/mesa-18.3.4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32314da4365d37f80d84f599bd9625b00161c273c39600ba63b45002d500bb07 +size 11875224 diff --git a/mesa-18.3.4.tar.xz.sig b/mesa-18.3.4.tar.xz.sig new file mode 100644 index 0000000..36c5a6b Binary files /dev/null and b/mesa-18.3.4.tar.xz.sig differ diff --git a/n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch b/n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch deleted file mode 100644 index 8638449..0000000 --- a/n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch +++ /dev/null @@ -1,32 +0,0 @@ -From cd5af5c511b50890abe24d1e212ba9817f4074dd Mon Sep 17 00:00:00 2001 -From: Stefan Dirsch -Date: Tue, 11 Dec 2018 11:36:26 +0100 -Subject: [PATCH] Disable Xshm for now since it results in render errors - -Xshm results in render errors and missing screen refreshes on GNOME3 -in a qemu VM (cirrus emulation); see also -https://bugzilla.suse.com/show_bug.cgi?id=1118149 ---- - src/glx/drisw_glx.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c -index 7b99e49f00..d6bebfb292 100644 ---- a/src/glx/drisw_glx.c -+++ b/src/glx/drisw_glx.c -@@ -232,7 +232,11 @@ swrastXPutImage(__DRIdrawable * draw, int op, - ximage->bytes_per_line = stride ? stride : bytes_per_line(w * ximage->bits_per_pixel, 32); - ximage->data = data; - -- if (pdp->shminfo.shmid >= 0) { -+ /* disable Xshm for now since it results in render errors and missing screen refreshes -+ on GNOME3 in a qemu VM (cirrus emulation); see also -+ https://bugzilla.suse.com/show_bug.cgi?id=1118149 -+ */ -+ if (0 && pdp->shminfo.shmid >= 0) { - ximage->width = ximage->bytes_per_line / ((ximage->bits_per_pixel + 7)/ 8); - ximage->height = h; - XShmPutImage(dpy, drawable, gc, ximage, 0, 0, x, y, w, h, False); --- -2.16.4 -