Commit Graph

7468 Commits (master)

Author SHA1 Message Date
matthieu fb763cc6fe Revert previous:
unbreak build with clang-16 by fixing up function definitions to match
the whole CARD64 vs uint64_t issue needs more thinking.
Suggested by kettenis@
2023-09-08 05:44:27 +00:00
matthieu f7753c17ad Revert previous. Needs more thinking. suggested by kettenis@ 2023-09-08 05:40:10 +00:00
matthieu 50e9bfdb05 Fix the build after recent CARD64 / unsigned long fises for llvm 16
There are many places in X drivers where CARD64 is used mixed with uint64_t
and CARD32 mixed with uint32_t.
Initially the CARD* types were only meant to be used in the X protocol
definition and implementation. Later they got used in driver for fixed-
length unsigned integers as synonyms for uintxx_t types.
Unfortunatly on OpenBSD the definition of uint64_t and CARD64 don't match.
So take the bull by the horns and fix the CARDxx definitions using the
corresponding uintxx_t types from stdint.h.
2023-09-07 21:54:21 +00:00
robert 5ab3ec55fb unbreak build with clang-16 by not using non-existent functions and by
using correct types where needed; this also removes some unnecessary casts
and some ancient compat defines

parts from and ok jsg@
2023-09-07 09:13:51 +00:00
matthieu 763e4f241a fix libxcvt.pc 2023-09-06 20:36:50 +00:00
robert 09bc32815c unbreak build with clang-16 by fixing up function definitions to match
our uint64_t is an unsinged long long, but CARD64 is defined as unsigned long
so the function pointer types in both glamor and xf86-video-amdgpu were
mismatched and clang-16 treats that as an error

ok matthieu@
2023-09-06 11:42:37 +00:00
jsg 60273ffa39 include signal.h for kill(2)
Remove an ifdef that prevented this.  signal.h is part of posix
and dtucker@ notes OpenSSH portable uses it without ifdefs.

ok matthieu@ robert@
2023-09-06 09:29:25 +00:00
robert 6a599fd2aa fix ISO C++17 does not allow 'register' storage class specifier error with clang16
pulled from upstream: https://gitlab.freedesktop.org/mesa/glu/-/merge_requests/10

ok jsg@
2023-09-05 15:35:17 +00:00
matthieu 4c4398b2e9 Avoid close(-1). ok miod@
wsClose() is called twice on X server exit, so this test is needed to
avoid calling close a 2nd time with -1.
2023-08-12 16:48:44 +00:00
miod a012b5de33 Make sure we don't close(-1); buglet introduced in 1.26.
ok matthieu@
2023-08-12 16:16:25 +00:00
aoyama 849b02b8d8 Support 8bpp X server on LUNA.
LUNA's frame buffer is 'planar' type, not packed pixel. So use
shadowUpdateAfb8 as shadow framebuffer procedure to work 8bpp X
server.

It took 10 years to make X server colored on LUNA.

Originally inspired by NetBSD/amiga.

ok miod@
2023-08-04 23:49:45 +00:00
aoyama dd4313439f Add pad_to_double() when the function allocates memories for 'double'
internally.

The functions wireToRawEvent() and copyRawEvent() get memories first,
then allocate memory blocks sequentially for several objects include
'double' from there.

On m88k, the memory area for 'double' should be 8-byte aligned, but
sizeof(XIRawEvent) is 60 and sizeof(out->valuators.mask_len) is 8.
In this case, allocated 'double' memory was not 8-byte aligned.

Because of this, 'xeyes' on luna88k was aborted with Bus Error right
after moving mouse for several years with sys/arch/m88k/m88k/trap.c
r.127.

Tested by me on luna88k, ok matthieu@
2023-08-02 13:57:24 +00:00
aoyama 16c1375008 Fix mmap'ing size for LUNA framebuffer.
LUNA's video memory has 'linebytes * fPtr->info.height' bytes per 1
plane and the real visible area begins at 'offset' within that video
memory area, so it does not need to add 'offset' when mmap'ing video
memory.

Noticed by nono emulator.

ok miod@
2023-08-01 11:06:13 +00:00
okan cd47a6bf03 Allow cwm(1) to cycle through windows of the same window class as the
active window; default key binding to M-grave, respectively Alt-Tilde,
like other window managers have as well.

from Simon Dassow
2023-07-20 14:39:34 +00:00
matthieu 508791166c fix drmGetMinorNameForFD(). tweaks and ok jsg@.
For the gpu n, the main device node is /dev/dri/card<n> and the
render device node is /dev/dri/renderD<n+drmGetMinorBase()> not
/dev/dri/renderD<n>
and miod@ checked that no port should be affected.
2023-07-06 07:21:30 +00:00
tb 93198764fc Disable neon asm on aarch64 to unbreak the build
with/ok matthieu
2023-07-05 15:52:50 +00:00
matthieu d97e9b6979 update 2023-07-03 19:04:51 +00:00
matthieu 6f3a8c4762 Update makedepend to version 1.0.8 2023-07-03 13:53:54 +00:00
matthieu 931240c538 sync 2023-07-03 13:43:54 +00:00
matthieu 48b14d4e87 Update to fontconfig 2.14.2 2023-07-03 13:18:52 +00:00
matthieu 765d57c14f Update to pixman 0.42.2 2023-07-03 13:09:25 +00:00
matthieu 874d89fb4e Update to xtrans 1.5.0 2023-07-03 12:53:59 +00:00
matthieu 01f781e04d Update libXaw to version 1.0.15 2023-07-03 11:30:13 +00:00
matthieu 5693db2ddd sync 2023-07-03 09:23:03 +00:00
matthieu 9ba36148c6 Update to libXt 1.3.0.
minor bump because XtReallocArray() was added.
2023-07-03 09:20:46 +00:00
matthieu 741201b883 Update to xcb-util 0.4.1 2023-07-03 09:07:44 +00:00
matthieu cdb9aceaa6 Update to libxshmfence 1.3.2 2023-07-03 08:57:56 +00:00
matthieu 23f3968306 Update to libXvMC 1.0.13 2023-07-03 08:44:04 +00:00
matthieu 554720657f remove file missed in previous commit 2023-07-03 08:37:44 +00:00
matthieu e2db786c6c Update to libXv 1.0.12 2023-07-03 08:36:57 +00:00
matthieu dca2d3dc3b Update to libXrandr 1.5.3 2023-07-03 08:31:22 +00:00
matthieu 668895bbfa Update to libXi 1.8.1 2023-07-03 08:26:45 +00:00
matthieu 22b9919c99 Update to libXfixes 6.0.1 2023-07-03 08:21:09 +00:00
matthieu 2314a82cd4 Update to libXdamage 1.1.6 2023-07-03 08:16:49 +00:00
matthieu 56e38a96b1 Update to libXcomposite 0.4.6 2023-07-03 08:13:41 +00:00
matthieu 0c022eeb73 Update to xf86-video-r128 6.12.1 2023-07-03 08:00:43 +00:00
matthieu 35184de566 Update xf86-video-ati to 22.0.0
All the important changes where already imported from upstreams.
2023-07-03 07:50:30 +00:00
matthieu 214c231816 Update to xf86-input-mouse 1.9.5 2023-07-03 07:28:53 +00:00
matthieu b19e0af9de Update xwd to version 1.0.9 2023-07-03 07:17:28 +00:00
matthieu 341d6380db Update xrdb to version 1.2.2 2023-07-03 07:03:55 +00:00
matthieu e826e72b95 Update setxkbmap to version 1.3.4 2023-07-03 06:55:45 +00:00
matthieu 3daaf03a87 update 2023-06-15 16:38:04 +00:00
matthieu dbccd1baf8 Fixes CVE-2023-3138: X servers could return values from XQueryExtension
that would cause Xlib to write entries out-of-bounds of the arrays to
store them, though this would only overwrite other parts of the Display
struct, not outside the bounds allocated for that structure.
2023-06-15 16:24:12 +00:00
matthieu 5c9a98ac12 update 2023-05-21 12:27:50 +00:00
matthieu a44f1fb411 Revert accicentally committed test/debug stuff. 2023-05-21 12:04:40 +00:00
matthieu 2b197900b8 update 2023-05-21 10:12:47 +00:00
matthieu 939b734148 sync 2023-05-21 09:26:03 +00:00
matthieu d7e2c3cbc7 Update freetype to 2.13.0 2023-05-21 09:25:29 +00:00
matthieu 4aa95e02f3 update 2023-05-09 20:58:35 +00:00
matthieu d1a8d3ab03 Update to xf86-video-sunffb 1.2.3 2023-05-09 20:17:04 +00:00