Benjamin Otte
3286d9f1b5
vulkan: Actually return the preferred memory format
...
We were just exiting the loop, but not remembering the index.
Speeds up various memory operations, sometimes by quite a lot.
2024-09-15 00:07:47 +02:00
Matthias Clasen
ee38c96ee3
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Add another profiler mark
See merge request GNOME/gtk!7712
2024-09-13 16:14:17 +00:00
Matthias Clasen
e5705bd141
gsk: Add another profiler mark
...
This lets us compare the cost of realizing the new renderers vs
the old GL renderer.
2024-09-13 11:02:52 -04:00
Matthias Clasen
753d74d676
Post-release version bump
2024-09-13 10:34:06 -04:00
Matthias Clasen
670b4aabac
4.16.1
2024-09-13 10:11:36 -04:00
Matthias Clasen
eba9316c12
Merge branch 'gtkcalendar-issue-6406' into 'main'
...
GtkCalendar: Avoid ending up with invalid dates
Closes #6406
See merge request GNOME/gtk!6851
2024-09-13 13:43:36 +00:00
Matthias Clasen
7f3835cc4f
Merge branch 'phase-docs' into 'main'
...
docs: Fix typo and improve wording in drawing model docs
See merge request GNOME/gtk!7711
2024-09-12 16:21:51 +00:00
Matthias Clasen
be89fa7919
Merge branch 'docs-typo' into 'main'
...
gtklistitem: Fix a minor typo in the docs
See merge request GNOME/gtk!7681
2024-09-12 13:58:04 +00:00
Philip Withnall
20d6938a90
docs: Fix typo and improve wording in drawing model docs
...
There was a typo ‘phases happens’, but also some spurious whitespace and
slightly odd-sounding use of ‘we’ so I changed it to be phrased
passively.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-09-12 14:06:39 +01:00
Matthias Clasen
6f4f4d0123
Merge branch 'gbsneto/atspiroot-flatpak-portal-session-bus' into 'main'
...
a11y: Use session bus to check Flatpak portal
See merge request GNOME/gtk!7709
2024-09-12 10:24:27 +00:00
Arjan Molenaar
250322deb0
Merge branch 'amolenaar/dnd-icon-on-top' into 'main'
...
macos: Keep DnD windows always on top
Closes #6809 and #6818
See merge request GNOME/gtk!7706
2024-09-12 09:25:05 +00:00
Matthias Clasen
bdee95c32c
Merge branch 'wip/otte/for-main' into 'main'
...
gpu: Don't crash when there's no ops
Closes #6992
See merge request GNOME/gtk!7710
2024-09-12 00:27:29 +00:00
Georges Basile Stavracas Neto
1ffd23dbab
a11y: Use session bus to check Flatpak portal
...
The Flatpak portal (and so far all other portals) live in the session
bus, not in the a11y bus.
Use the session bus to get the Flatpak portal version. Avoid too many
synchronous D-Bus calls on startup by using g_once_init_* helpers.
2024-09-11 10:43:47 -03:00
Arjan Molenaar
e92bd4d9ce
macOS: drag surfaces should ignore all events
...
This fixes the Dnd demo.
2024-09-11 14:59:03 +02:00
Georges Basile Stavracas Neto
24841a8d5b
a11y: Correct return type of D-Bus call
...
org.freedesktop.DBus.Properties.Get() returns "(v)" which then
must be unpacked into an uint32 ("u") variant.
2024-09-11 08:53:38 -03:00
Matthias Clasen
c2dc459167
Merge branch 'label-docs-fix' into 'main'
...
gtkenums: Fix missing backtick in docs
See merge request GNOME/gtk!7683
2024-09-11 10:13:13 +00:00
Matthias Clasen
d87ce14869
Merge branch 'vulkan-294' into 'main'
...
vulkan: Add another two error codes
See merge request GNOME/gtk!7708
2024-09-11 10:12:40 +00:00
Benjamin Otte
e9735f0c35
gpu: Move GskGpuClip declaration into types header
...
Makes it possible to use it in multiple places.
2024-09-11 08:34:41 +02:00
Benjamin Otte
d320373262
gpu: Clarify a function
...
It does functionally the same now, but it makes it mroe clear how it
works.
As a bonus, it will now trigger for -Wswitch-enum, too.
2024-09-11 08:33:22 +02:00
Arjan Molenaar
a84fe6bde6
macos: Put DnD windows on status level
...
This will make sure the dragged window will stay visible.
2024-09-11 08:19:39 +02:00
Benjamin Otte
a8748598b6
gpu: verbose-print if shaders are inside merged ops
...
This is useful when trying to get more ops merged for performance
reasons.
2024-09-11 08:17:58 +02:00
Benjamin Otte
748acaf654
gpu: Use a better character for debug print
...
Instead of 🞨 which isn't supported in many places, use ⬚.
⬚ also fits better with □ and ▢ for describing clip regions.
2024-09-11 08:17:58 +02:00
Benjamin Otte
1ff9d1545d
Revert "vulkan: Set VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT"
...
This reverts commit ffae0010c4
.
The commit doesn't work with the nvidia driver and it's not necessary to
use it, so drop it for now.
Fixes #6992
2024-09-11 08:17:43 +02:00
Benjamin Otte
e35670a014
gpu: Don't crash when there's no ops
...
In the rare situation (read: I triggered it with obscure hacks) where no
ops are emitted, we could end up pointing into invalid memory and
crashing.
Don't do that.
2024-09-11 08:17:43 +02:00
Benjamin Otte
9690c87736
docs: Remove duplicated text
2024-09-11 08:17:43 +02:00
Philip Withnall
a60d96a9ac
gtkenums: Fix missing backtick in docs
...
Fixes the formatting for `GtkAlign`.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-09-11 00:35:47 +00:00
Matthias Clasen
0a9b501743
Merge branch 'plug-leak' into 'main'
...
filechooser: Plug a leak
See merge request GNOME/gtk!7705
2024-09-11 00:09:05 +00:00
Emmanuel Gil Peyrot
6dd55e381d
vulkan: Fix error string
...
This one got added in 66ba1f76ba
but didn’t end
the sentence with a dot, and didn’t have its enum name between parentheses so
that people can debug more easily which error code got generated.
2024-09-10 22:46:29 +00:00
Emmanuel Gil Peyrot
abd8d40bf9
vulkan: Add another two error codes
...
Those two come from the VK_KHR_pipeline_binary extension and have been added in
Vulkan 1.3.294.
2024-09-10 22:45:41 +00:00
Matthias Clasen
348e938698
Merge branch 'matthiasc/for-main' into 'main'
...
print dialog: Fix initial selection
Closes #6996
See merge request GNOME/gtk!7704
2024-09-10 18:35:08 +00:00
Sergey Bugaev
4e0a909ca9
directorylist: Fix criticals if monitoring fails
...
g_file_monitor_directory () can fail. We're ignoring the actual error
by passing NULL for the error argument, but we shouldn't be trying to
connect to a signal on the NULL value that gets returned on error.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2024-09-10 18:38:56 +03:00
Sergey Bugaev
8964f6f0cc
filechooser: Plug a leak
...
gtk_file_chooser_get_current_folder () is transfer full, while
g_list_store_append () is transfer none.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2024-09-10 18:29:45 +03:00
Matthias Clasen
b807b84e16
print dialog: Fix initial selection
...
This broke with recent fixes to GtkSingleSelection.
Fixes : #6996
2024-09-10 10:59:36 -04:00
Matthias Clasen
97a2c3a656
Merge branch 'wip/smcv/issue6995' into 'main'
...
gdkgltexture: Avoid use-after-free when switching GdkGLContext
Closes #6995
See merge request GNOME/gtk!7703
2024-09-10 11:23:30 +00:00
Bruce Cowan
5925c4c51f
Update British English translation
2024-09-10 10:15:31 +00:00
Simon McVittie
0fa2ae48d4
gdkgltexture: Avoid use-after-free when switching GdkGLContext
...
`thread_current_context` might be holding the last reference to
`previous`, in which case `gdk_gl_context_make_current` on the new
context will free `previous`, leaving it a dangling pointer.
Avoid this by making sure to hold a reference.
Fixes: 41cd0c6f
"gl: Fix initial EGL context creation on X11"
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/6995
Signed-off-by: Simon McVittie <smcv@debian.org>
2024-09-10 00:11:18 +01:00
Matthias Clasen
43303bf7e5
Merge branch 'matthiasc/for-main' into 'main'
...
Revert "css: Simplify theme loading"
Closes #6991
See merge request GNOME/gtk!7702
2024-09-09 12:35:57 +00:00
Anders Jonsson
f26f491d58
Update Swedish translation
2024-09-09 11:22:40 +00:00
Matthias Clasen
a9b46e8409
Revert "css: Simplify theme loading"
...
This reverts commit c033de9b83
.
This change unintentionally broke use of relative paths in Adwaita.
Fixes : #6991
2024-09-09 06:51:34 -04:00
Daniel Mustieles
b27e67999b
Update Spanish translation
2024-09-09 09:26:15 +00:00
Balázs Úr
3177fd14f9
Update Hungarian translation
2024-09-09 06:26:41 +00:00
Benjamin Otte
9ba41ed6e8
Merge branch 'wip/otte/blur-and-blit' into 'main'
...
Fix blur for opaque textures
Closes #6980
See merge request GNOME/gtk!7697
2024-09-09 04:46:43 +00:00
Matthias Clasen
70f2e2e09c
Merge branch 'matthiasc/for-main' into 'main'
...
docs: Sync docs for GDK_VULKAN_DISABLE
See merge request GNOME/gtk!7700
2024-09-09 03:53:50 +00:00
Benjamin Otte
56fc8f0077
gpu: Blur opaque textures correctly
...
Opaque textures don't clamp to transparent but instead to black.
We didn't consider this, so we were blurring their edges into blackness
not into transparency.
Fix this by adding the GSK_GPU_AS_IMAGE_SAMPLED_OUT_OF_BOUNDS flag
and respecting it in the implementation that uses it.
Test included.
Fixes #6980
2024-09-09 05:10:51 +02:00
Benjamin Otte
85abff343e
ngl: Images are not blittable if they have a swizzle
...
Swizzling is not respected for blitting.
See commit 058252e895
for the same change in Vulkan.
Apparently that never made it to ngl.
The next commit will have a test for this.
2024-09-09 04:18:13 +02:00
Benjamin Otte
6cefdfeddd
testsuite: Fix udmabuf creation
...
We were using the wrong format and color state when downloading the
data.
Tests not included in this commit, but a few commits later.
2024-09-09 04:18:13 +02:00
Matthias Clasen
75fa51ef6d
Cosmetics
...
Fix a typo
2024-09-08 19:35:53 -04:00
Matthias Clasen
4181b4b142
docs: Sync docs for GDK_VULKAN_DISABLE
...
Add swapchain-maintenance, and remove some no longer used values.
2024-09-08 19:35:00 -04:00
Benjamin Otte
7b55d2cf1a
Merge branch 'wip/otte/for-main' into 'main'
...
vulkan: Enable VK_EXT_swapchain_maintenance1 if available
See merge request GNOME/gtk!7696
2024-09-08 23:25:36 +00:00
Benjamin Otte
03230181ce
gpu: Add GskGpuAsImageFlags
...
I've had a need for flags for the get_as_image() call but so far have
been able to work around it. But now it seems I might finally need it.
This just introduces the flags but doesn't add any.
Related: #6980
2024-09-09 01:25:03 +02:00