<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wlroots.git/render/allocator, branch master</title>
<subtitle>fork of wlroots with action binder support
</subtitle>
<id>https://git.vlhl.dev/navi/wayland/wlroots.git/atom?h=master</id>
<link rel='self' href='https://git.vlhl.dev/navi/wayland/wlroots.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/'/>
<updated>2024-02-15T14:41:12+00:00</updated>
<entry>
<title>Define _POSIX_C_SOURCE globally</title>
<updated>2024-02-15T14:41:12+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2024-02-15T14:34:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=842093bb843ae6c719c2b1cf32eb749cab9e46ca'/>
<id>urn:sha1:842093bb843ae6c719c2b1cf32eb749cab9e46ca</id>
<content type='text'>
Stop trying to maintain a per-file _POSIX_C_SOURCE. Instead,
require POSIX.1-2008 globally. A lot of core source files depend
on that already.

Some care must be taken on a few select files where we need a bit
more than POSIX. Some files need XSI extensions (_XOPEN_SOURCE) and
some files need BSD extensions (_DEFAULT_SOURCE). In both cases,
these feature test macros imply _POSIX_C_SOURCE. Make sure to not
define both these macros and _POSIX_C_SOURCE explicitly to avoid
POSIX requirement conflicts (e.g. _POSIX_C_SOURCE says POSIX.1-2001
but _XOPEN_SOURCE says POSIX.1-2008).

Additionally, there is one special case in render/vulkan/vulkan.c.
That file needs major()/minor(), and these are system-specific.
On FreeBSD, _POSIX_C_SOURCE hides system-specific symbols so we need
to make sure it's not defined for this file. On Linux, we can
explicitly include &lt;sys/sysmacros.h&gt; and ensure that apart from
symbols defined there the file only uses POSIX toys.
</content>
</entry>
<entry>
<title>allocator: remove backend parameter in allocator_autocreate_with_drm_fd</title>
<updated>2024-02-02T21:36:31+00:00</updated>
<author>
<name>Austin Shafer</name>
<email>ashafer@nvidia.com</email>
</author>
<published>2024-01-31T20:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=d368028bd5557810af954ef96bf0f4addd97f551'/>
<id>urn:sha1:d368028bd5557810af954ef96bf0f4addd97f551</id>
<content type='text'>
Since we only use the backend capabilities here we can simply pass
them in directly. This allows other locations to create an allocator
even if they don't have a backend. They can simply specify the caps
they want instead.
</content>
</entry>
<entry>
<title>render/allocator: log message when GBM is disabled</title>
<updated>2023-10-06T09:10:31+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-08-23T13:57:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=0b15b4a6ae6654f838ee38ce4d8862a600136c87'/>
<id>urn:sha1:0b15b4a6ae6654f838ee38ce4d8862a600136c87</id>
<content type='text'>
When the backend and renderer would need GBM but it's disabled at
compile-time, log a message to make this situation easier to debug.
</content>
</entry>
<entry>
<title>Avoid using memcpy() to copy structs</title>
<updated>2023-08-03T14:40:28+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-08-03T10:07:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=c74f89d4f84bfed0284d3908aee5d207698c70c5'/>
<id>urn:sha1:c74f89d4f84bfed0284d3908aee5d207698c70c5</id>
<content type='text'>
We can just use a regular assignment instead. This is more
type-safe since there is no need to provide the struct size.

The remaining memcpy() calls perform array copies or copies from
void pointers (which may be unaligned).
</content>
</entry>
<entry>
<title>Use wl_container_of() instead of casts</title>
<updated>2023-07-11T18:16:17+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-07-11T15:54:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=fe06e5f49a12174ceeb5e307bf5c3d7f623177d5'/>
<id>urn:sha1:fe06e5f49a12174ceeb5e307bf5c3d7f623177d5</id>
<content type='text'>
This slightly improves type safety.

The culprits were found with:

    git grep -E '\([a-z0-9_ ]+ \*\)\W?[a-z]'
</content>
</entry>
<entry>
<title>Use struct initializers instead of memset()</title>
<updated>2023-07-07T15:31:11+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-07-07T12:34:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=7a9f8d8d6bf72fcea210552b7bec9b99f342f857'/>
<id>urn:sha1:7a9f8d8d6bf72fcea210552b7bec9b99f342f857</id>
<content type='text'>
This is a bit more type-safe.
</content>
</entry>
<entry>
<title>allocator: only use DRM auth if we are master</title>
<updated>2023-06-19T19:36:17+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-06-19T09:43:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=be73da28b24f3250178a0c5448e835f810f75f28'/>
<id>urn:sha1:be73da28b24f3250178a0c5448e835f810f75f28</id>
<content type='text'>
Legacy DRM auth will only work if we are DRM master. Keep using an
unauthenticated DRM FD if we are not DRM master. This should be
enough for GBM.

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3674
</content>
</entry>
<entry>
<title>render/pixel-format: add support for block-based formats</title>
<updated>2023-05-21T20:28:45+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-05-08T20:17:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=96f3f3c92e8db16f9acc551b2673db70108988f2'/>
<id>urn:sha1:96f3f3c92e8db16f9acc551b2673db70108988f2</id>
<content type='text'>
Some formats like sub-sampled YCbCr use a block of bytes to
store the color values for more than one pixel. Update our format
table to be able to handle such formats.
</content>
</entry>
<entry>
<title>build: unify naming for HAVE_* defines</title>
<updated>2022-12-06T22:39:45+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-11-25T17:15:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=86fc2199f85ac0e1089bb7fd5a0b5cbc432bdb67'/>
<id>urn:sha1:86fc2199f85ac0e1089bb7fd5a0b5cbc432bdb67</id>
<content type='text'>
We sometimes used HAS_, sometimes polluted the LIBINPUT_ namespace,
etc.
</content>
</entry>
<entry>
<title>render/allocator/gbm: use internal_config</title>
<updated>2022-12-06T22:39:45+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-11-25T17:08:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=cb6b1193c8aff879c79ceda8cf5bf737837fcb05'/>
<id>urn:sha1:cb6b1193c8aff879c79ceda8cf5bf737837fcb05</id>
<content type='text'>
Removes a project argument.
</content>
</entry>
</feed>
