main
186 commits
bb5d247
shrub  ·  2026-05-06
main
portability
6446a28
shrub  ·  2026-03-18
fix pixman ref leak in copy ops
1039dce
shrub  ·  2026-03-12
fix include
a1862f0
shrub  ·  2026-03-12
remove . include that breaks because of local pixman.h
8f37bab
shrub  ·  2026-03-12
meson includes
da03b6d
sewn  ·  2026-02-28
switch to meson
10c9dd9
dalem  ·  2026-02-08
add lines
b43133c
pascalecu  ·  2026-02-08
add gitignore for generated files
0a60e49
shrub  ·  2026-02-08
bmake
402198d
dalem  ·  2026-02-07
bruh
49ced8d
dalem  ·  2026-02-07
add circle rendering and shit
4e7e043
shrub  ·  2026-02-03
openbsd compatibility
6c07136
shrub  ·  2026-02-01
init
8990a83
Michael Forney  ·  2023-07-03
drm: Fallback to dumb driver if hardware-specific driver fails
3fe15e7
Michael Forney  ·  2022-10-22
wayland-drm: Finish removal of wl_drm_authenticate

In 6586736176, usage of wl_drm_authenticate was removed, but we
still waited for an authenticate event to use the device. This
caused DRM drivers to never be selected and we always fell back to
SHM.
6586736
Michael Forney  ·  2021-06-30
wayland-drm: Remove obsolete drmGetMagic/wl_drm_authenticate

We don't use wl_drm.create_buffer since b1a964a62d, so these are
unnecessary and may result in a protocol error with newer display
servers.
ea4eccb
nia  ·  2020-02-20
drm: Check if major() gets defined in sys/types.h before including sys/sysmacros.h
393f20c
nia  ·  2019-12-11
Add ftruncate fallback if posix_fallocate fails

No filesystem on NetBSD implements posix_fallocate.
ba4bc75
nia  ·  2019-12-11
Define _NETBSD_SOURCE on NetBSD for mkostemp
dbf96c5
Michael Forney  ·  2020-01-04
pixman: Use destination clipping for copy_region

Source clipping is ignored by default unless set explicitly with
pixman_image_set_has_client_clip and pixman_image_set_source_clipping.
a586b03
Michael Forney  ·  2019-08-25
protocol: Generate private code

This prevents a warning from wayland-scanner.
2a6b5c1
Thomas Gardner  ·  2019-09-24
build: preserve generated files

GNU Make sees the generated protocol source file as intermediate. But
intermediate files are deleted after the make invocation. This leads to
two undesirable behaviours:

	1. the generated file cannot be inspected,
	2. the pretty printed build output becomes tainted.

Making the file a prerequisite of .PRECIOUS prevents the deletion.
dfa8f79
Michael Forney  ·  2019-07-11
pixman: Avoid VLA for glyph array
2e0c4d7
Michael Forney  ·  2019-07-11
Remove unused sync_listener
769b925
Michael Forney  ·  2019-07-11
Style changes
81232b2
Michael Forney  ·  2019-07-11
Reformat with clang-format
0da359a
Michael Forney  ·  2019-03-19
intel: Don't tile cursor buffer, regardless of size

The right way to choose a kernel buffer size is to query
DRM_CAP_CURSOR_WIDTH and DRM_CAP_CURSOR_HEIGHT. However, on intel
this may return 256, the maximum size. Make sure not to tile the
cursor buffer, even if we'd tile it otherwise.
b4e902b
Devin J. Pohly  ·  2017-10-31
intel: get updated PCI ids from mesa

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
d455967
Devin J. Pohly  ·  2017-10-31
intel: implement Broadwell (gen8) support

Worked from PRMs and did not have gen8 HW to test.  Device IDs can be
added to the header file to enable support once they are tested.

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
9f356a6
Devin J. Pohly  ·  2017-10-31
intel: add GEN macro for device_info->gen check

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
fa55403
Michael Forney  ·  2017-08-20
Check snprintf result
bd3e613
Michael Forney  ·  2017-08-20
Handle failure to open DRM vendor and device files
efe0a1e
Michael Forney  ·  2015-09-01
nouveau: Fix copy of XRGB buffers with no alpha component
00ba7a7
Michael Forney  ·  2015-03-20
Merge pull request #5 from alexander-b/master

Add info to README, and make it markdown format
a05ce63
Alexander Berntsen  ·  2015-03-11
Add info to README, and make it markdown format

Signed-off-by: Alexander Berntsen <alexander@plaimi.net>
74f0dea
Michael Forney  ·  2014-11-23
Makefile: Leave directory quoting to the user
d7e1bc3
Michael Forney  ·  2014-11-02
Update to latest nouveau headers from envytools
117cece
Michael Forney  ·  2014-11-02
nouveau: Initialize bo to NULL so that nouveau_bo_prime_handle_ref works correctly
9f89adb
Michael Forney  ·  2014-11-02
wayland-shm: Handle potential malloc failure
745ce8b
Michael Forney  ·  2014-11-02
Drop wld_draw_next_n

Instead, just document that the caller should pass -1 if the entire string is
to be drawn.
c71dc18
Michael Forney  ·  2014-10-19
wayland: Remove wayland-drm and wayland-shm headers

Add a wayland_impl struct.
7fe3933
Michael Forney  ·  2014-10-18
wayland: Use wl_display_roundtrip_queue
3700d03
Michael Forney  ·  2014-10-15
Update wayland-drm.xml
0c3ce6a
Michael Forney  ·  2014-10-11
Remove GEM name support
3acacf1
Michael Forney  ·  2014-05-18
Allow user to enable/disable building a static/shared library
8dbb78f
Michael Forney  ·  2014-05-16
Makefile: Use better variable names for shared library and links
e123c00
Michael Forney  ·  2014-05-16
Use LDFLAGS in linking step
9ed43c6
Niklas Svensson  ·  2014-04-01
_BSD_SOURCE is deprecated since glibc 2.20

https://sourceware.org/glibc/wiki/Release/2.20
You could define both _BSD_SOURCE and
_DEFAULT_SOURCE to be both backward and
forward compatible. However, fixing so
that we are not dependent on _BSD_SOURCE
at all is the best solution.
b2b94e6
Michael Forney  ·  2014-03-15
Add COPYING

Fixes #1
2555548
Michael Forney  ·  2014-02-13
pixman: Use strlen if length == -1
b629099
Michael Forney  ·  2014-02-13
drm: Use dumb buffers if WLD_DRM_DUMB is set
5c84ffa
Michael Forney  ·  2014-02-12
buffer: Run destructors before unmapping buffer

This way we avoid unmapping the buffer twice if a destructor calls
wld_unmap (as in wayland-shm).
8884f07
Michael Forney  ·  2014-02-06
Add user object class
3b8db51
Michael Forney  ·  2014-02-06
Split exporters into destructors
3a416f3
Michael Forney  ·  2014-02-06
buffer: Add reference counting
48a50df
Michael Forney  ·  2014-02-05
buffer_socket: Drop wld_ prefix
1e42a24
Michael Forney  ·  2014-02-05
buffer: Move internal state to struct buffer
3abdc0f
Michael Forney  ·  2014-02-06
buffer: Remove user data
6230926
Michael Forney  ·  2014-02-06
Make exporters public API
85fb54a
Michael Forney  ·  2014-02-05
Style
0136003
Michael Forney  ·  2014-02-05
Tweak IMPL macro
6b163d2
Michael Forney  ·  2014-01-31
Enable wayland by default
d8adcb3
Michael Forney  ·  2014-01-31
Move path defaults to Makefile
9c5c4ff
Michael Forney  ·  2014-01-31
drm: Use snprintf return value to calculate sysfs paths
b32c3d6
Michael Forney  ·  2014-01-31
intel: Don't malloc batch structure
3f29f42
Michael Forney  ·  2014-01-31
intel/blt: Drop INTEL_ prefix
2b0441a
Michael Forney  ·  2014-01-31
intel: Merge libintelbatch into wld
573d91f
Michael Forney  ·  2014-01-31
Remove old Makefile.am
fa1ab66
Michael Forney  ·  2014-01-31
Add common.mk
7838b62
Michael Forney  ·  2014-01-31
nouveau: Keep track of chipset architecture
5eb5146
Michael Forney  ·  2014-01-31
Only use upper 8 bits for implementation in object types

While I'm breaking ABI, might as well do this as well.
e527984
Michael Forney  ·  2014-01-31
Add flags argument to create_{buffer,surface}

This adds an additional argument to the create_{buffer,surface}. The
upper 16 bits of this number are global flags specified in wld.h, and
the lower 16 bits are implementation-specific flags.

Some drivers, like nouveau, need extra information about intended use
for a buffer in order to create it with the correct settings.
b5f5dc9
Michael Forney  ·  2014-01-31
nouveau: Use definitions from rnndb headers
7edb598
Michael Forney  ·  2014-01-31
nouveau: Add explanation for why map only works with non-tiled buffers
b77d204
Michael Forney  ·  2014-01-31
nouveau: Make nvc0_format inline
3413eed
Michael Forney  ·  2014-01-31
nouveau: Implement text rendering
f5b2b47
Michael Forney  ·  2014-01-31
nouveau: Update sizes for ensure_space
ce80a7e
Michael Forney  ·  2014-01-31
nouveau: Set operation once in 2d_initialize

Also, use SRCCOPY_AND instead of SRCCOPY in case the alpha bit isn't
set.
209df22
Michael Forney  ·  2014-01-31
nouveau: Combine nvc0_2d_{src,dst} into nvc0_2d_use_buffer
d324af4
Michael Forney  ·  2014-01-31
nouveau: Use inline commands when possible
a0c4594
Michael Forney  ·  2014-01-31
nouveau: Add more flexible command interface
f63520e
Michael Forney  ·  2014-01-14
Add initial nouveau support

Still need to implement text rendering.
2e467a3
Michael Forney  ·  2014-01-16
wayland: Report damage to server on swap
8d41327
Michael Forney  ·  2014-01-15
wayland: Add surfaces
182f6d3
Michael Forney  ·  2014-01-15
Implement buffered surfaces
a0520fc
Michael Forney  ·  2014-01-15
Add surface interface
4555a6b
Michael Forney  ·  2014-01-15
wayland: Make sync_listener static
a22d49c
Michael Forney  ·  2014-01-15
Allow overriding of Wayland interface via WLD_WAYLAND_INTERFACE env var
1dba360
Michael Forney  ·  2014-01-15
buffer: Add damage field
bb06429
Michael Forney  ·  2014-01-15
pixman: Handle image creation failure
d611113
Michael Forney  ·  2014-01-15
buffer: Add user data/destroy function field
9242691
Michael Forney  ·  2014-01-15
wayland-shm: Use buffer map interface instead of mapping and then importing

This way the mapped memory gets unmapped correctly when the buffer is
destroyed.
33f9ab0
Michael Forney  ·  2014-01-15
Makefile: Remove redundant setting of ENABLE_DEBUG
dcf630d
Michael Forney  ·  2014-01-15
wayland: Initialize context to NULL

This fixes a crash when called with WLD_ANY
ff31e9d
Michael Forney  ·  2014-01-15
wayland: Keep track of event queue and destroy when context is destroyed
b075784
Michael Forney  ·  2014-01-15
buffer: Use safe list traversal when destroying exporters
e46f32a
Michael Forney  ·  2014-01-15
Makefile: intel requires drm
d4c7b68
Michael Forney  ·  2014-01-14
Move setting of PKG_CONFIG and WAYLAND_SCANNER to Makefile

This way a sane default will be used if none is specified in config.mk
76f5ec3
Michael Forney  ·  2014-01-14
wayland-shm: Use posix_fallocate instead of ftruncate
060c033
Michael Forney  ·  2014-01-14
buffer: Make pitch a uint32_t
ed1778f
Michael Forney  ·  2014-01-14
intel: Pass bo to new_buffer
d8a80f7
Michael Forney  ·  2014-01-14
Style
2cf1a72
Michael Forney  ·  2014-01-14
Makefile: Add -DNDEBUG when ENABLE_DEBUG=0 to disable assertions
9aeb725
Michael Forney  ·  2014-01-14
wayland-shm: Use wld_wayland prefix as in wayland-drm
c53915e
Michael Forney  ·  2014-01-14
Rename drawable -> buffer

Since buffers can not only be drawn to, but also copied from, I thought
buffer was a better name.
e9462f0
Michael Forney  ·  2014-01-14
dumb: Use map mechanism instead of pixman drawable
e2b75f7
Michael Forney  ·  2014-01-14
pixman: Allow read/write to arbitrary buffers using drawable_map

The first time pixman sees an unknown drawable, it maps it and then
adds a pixman image exporter to the drawable.
bbb03ae
Michael Forney  ·  2014-01-14
Add better map interface
25780d2
Michael Forney  ·  2014-01-14
Remove write operation
4ee9dac
Michael Forney  ·  2014-01-14
Separate actual rendering to renderer
1c0784b
Michael Forney  ·  2014-01-14
Update copyrights
4f2f9a5
Michael Forney  ·  2014-01-14
wayland: Remove surface drawable

This will be replaced in future commits.
ea86c0d
Michael Forney  ·  2014-01-13
wayland-{shm,drm}: Use wld_context
22f8d81
Michael Forney  ·  2014-01-13
drm: Use exporters
ea66021
Michael Forney  ·  2014-01-13
Add exporters
226ac95
Michael Forney  ·  2014-01-13
Add drawable_initialize convenience function
c253a00
Michael Forney  ·  2014-01-13
Rename draw_text_utf8 -> draw_text
ca95e85
Michael Forney  ·  2014-01-13
dumb: Support gem name importing
6f5064d
Michael Forney  ·  2014-01-13
drm: Add debug information about drivers tried
e457fe7
Michael Forney  ·  2014-01-13
Rename wld_drm_interface -> drm_driver
e00bf11
Michael Forney  ·  2014-01-01
wld_draw_interface -> wld_drawable_impl
56a5508
Michael Forney  ·  2014-01-01
Style (#define FOO_H 1 -> #define FOO_H)
f61ad4e
Michael Forney  ·  2014-01-01
Add context abstraction
6fb42cc
Michael Forney  ·  2014-01-01
Style
47c94eb
Michael Forney  ·  2013-12-31
Move interface prototypes and struct declarations to interface/
0aea280
Michael Forney  ·  2014-01-01
Style: pixman_format -> format_wld_to_pixman
cc21dfa
Michael Forney  ·  2014-01-01
Explicitly export symbols
5db3c08
Michael Forney  ·  2014-01-01
Fix errors/warnings
ca9010a
Michael Forney  ·  2013-12-31
Switch to using Makefiles directly
3a508b1
Michael Forney  ·  2013-11-20
intel: Adapt to libintelbatch changes
b04381c
Michael Forney  ·  2013-11-20
Remove some unnecessary newlines
760cf6b
Michael Forney  ·  2013-11-19
Add missing libdrm_CFLAGS
b5ca637
Michael Forney  ·  2013-11-18
intel: wld_intel_context -> intel_context
5384214
Michael Forney  ·  2013-11-17
drm: Add fallback dumb buffer support
365cdf2
Michael Forney  ·  2013-11-17
drm: Remove drm_drawable, move export to drm_draw_interface
010e858
Michael Forney  ·  2013-11-17
Use +=
1bfc140
Michael Forney  ·  2013-10-24
Remove unnecessary _Static_asserts

The C specifications already guarantees the offset of the first member
of a struct is 0.
042ab6d
Michael Forney  ·  2013-10-09
configure: Remove unneeded AC_CONFIG_MACRO_DIR
f844503
Michael Forney  ·  2013-10-09
configure: Add subdir-objects option to AC_INIT_AUTOMAKE
cbf104a
Michael Forney  ·  2013-09-11
Style: Remove redundant static declaration
af4885f
Michael Forney  ·  2013-09-10
Add map operation
95a78e6
Michael Forney  ·  2013-09-07
intel: Don't tile buffers if width is small
82330e0
Michael Forney  ·  2013-09-07
Style
fc99add
Michael Forney  ·  2013-09-07
Add write operation
134e4da
Michael Forney  ·  2013-09-05
drm: Add method to get buffer handle
049c414
Michael Forney  ·  2013-09-05
Rework configure options
a133781
Michael Forney  ·  2013-09-05
Don't crash on global_remove
17319a1
Michael Forney  ·  2013-09-05
drm: Add buffer import support
50e7d71
Michael Forney  ·  2013-09-05
Just use uint32_t instead of enum wld_format

Forward declarations of enum don't really make sense.
6b8e13e
Michael Forney  ·  2013-09-05
Don't automatically export DRM drawable to PRIME
06017f5
Michael Forney  ·  2013-09-05
Separate non-wayland specific parts of wayland-drm

Now, applications can use hardware independent DRM drawables without
using wayland.
64bdb1f
Michael Forney  ·  2013-09-05
Add pitch field to wld_drawable
2ad8b5b
Michael Forney  ·  2013-09-05
Don't expose driver specific API
2424d25
Michael Forney  ·  2013-09-05
Follow autoconf capitalization conventions
52c642d
Michael Forney  ·  2013-07-25
Add a comment
4bd0ab7
Michael Forney  ·  2013-07-25
Move private interface field to bottom of wld_drawable

This way, if I decide to hide it internally, I don't break ABI.
fae91de
Michael Forney  ·  2013-07-25
wayland: Implement damage tracking (including copy and submit)
a4f8758
Michael Forney  ·  2013-07-25
Add parentheses around {FRONT,BACK}BUF for safety
a17abf7
Michael Forney  ·  2013-07-25
draw_text_utf8: Optionally return extents
b4bcdad
Michael Forney  ·  2013-07-25
Destroy sync callbacks
8820ace
Michael Forney  ·  2013-07-25
wayland: Ensure buffer is released before drawing
6fb96f3
Michael Forney  ·  2013-07-25
Remove wld_wayland_create_buffer_from_drawables
3e011e5
Michael Forney  ·  2013-07-25
Add copy_{rectangle,region} operations
13a9267
Michael Forney  ·  2013-07-25
Use simpler region iteration
be5d6d3
Michael Forney  ·  2013-07-25
default_fill_region: Call interface method directly
bd5e82a
Michael Forney  ·  2013-07-25
Use cleaner API for filling rectangle(s)

Specify coordinates explicitly for fill_rectangle, and replace
fill_rectangles with fill_region.
b8b5c06
Michael Forney  ·  2013-07-25
Be explicit about staticness
aa44529
Michael Forney  ·  2013-07-25
Remove default_flush
8669757
Michael Forney  ·  2013-07-21
Rename buffer.buffer -> buffer.wl and callback -> sync
a0210e7
Michael Forney  ·  2013-07-19
Don't use named variadic macros
5f668c4
Michael Forney  ·  2013-07-19
wayland: Initialize interfaces_tried array to 0
eefa125
Michael Forney  ·  2013-07-19
drm: Add PRIME fd accessor
a291d87
Michael Forney  ·  2013-07-19
Only create single buffers in wayland-{drm,shm}
b1a964a
Michael Forney  ·  2013-07-19
Use PRIME buffer sharing
93c2137
Michael Forney  ·  2013-07-19
Fix indentation
8cfaf35
Michael Forney  ·  2013-07-19
Ensure that we send another XY_SETUP_BLT if we need to flush in the middle of drawing text
68bd56b
Michael Forney  ·  2013-07-19
Fixed bug in libintelbatch
21bf530
Michael Forney  ·  2013-07-19
Use static assertion to ensure types are castable, instead of container_of
130ed43
Michael Forney  ·  2013-07-19
Use drm_drawable base for drm drawable info
9e78642
Michael Forney  ·  2013-07-19
Add missing error check
e3e448f
Michael Forney  ·  2013-07-19
Use a central queue
a61f447
Michael Forney  ·  2013-07-17
Fix text extents loop
5e4aa91
Michael Forney  ·  2013-07-13
Add wld_font_destroy_context
7c6ea33
Michael Forney  ·  2013-07-13
Remove some extraneous debug statements
6dfd3cd
Michael Forney  ·  2013-07-13
Initial import
2ccabcc
Michael Forney  ·  2013-07-07
Initial commit