Matthias Clasen
744016e768
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Drop statistics from GSK_DEBUG=renderer
See merge request GNOME/gtk!7203
2024-04-29 18:30:59 +00:00
Benjamin Otte
d39f50a4ee
Merge branch 'wip/otte/for-main' into 'main'
...
dmabuf: Use narrow range instead of full range
Closes #6672
See merge request GNOME/gtk!7202
2024-04-29 16:28:28 +00:00
Matthias Clasen
c23d3c4406
gsk: Add debug spew to renderer selection
...
Reshuffle things a bit and make GSK_DEBUG=renderer print out
more information about why renderers were skipped or selected.
2024-04-29 12:28:15 -04:00
Matthias Clasen
1e2eae4ddf
gsk: More detailed debug spew
...
Include information about why a renderer was selected in
GSK_DEBUG=renderer.
2024-04-29 12:12:22 -04:00
Matthias Clasen
77eb3df7c0
gsk: Drop statistics from GSK_DEBUG=renderer
...
This only works with the old gl renderer, and it interferes with
the setup information that is printed by that category.
2024-04-29 12:12:22 -04:00
Matthias Clasen
e540022869
x11: Implement a missing method
...
Vulkan on X11 was getting spew for missing an empty_frame
implementation.
2024-04-29 12:12:22 -04:00
Benjamin Otte
e6700405c9
dmabuf: Use narrow range instead of full range
...
It's way more common, and Mutter uses it, too.
Avoid visual glitches when going in/out of offload.
Fixes #6672
2024-04-29 14:30:56 +02:00
Artur S0
5bbd8e12fa
Update Russian translation
2024-04-29 11:59:09 +00:00
Matthias Clasen
8b59771cd1
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Cosmetics
See merge request GNOME/gtk!7199
2024-04-29 10:27:26 +00:00
Matthias Clasen
8a0a08e4ce
Merge branch 'only-fg-symbolics' into 'main'
...
Reencode all our symbolic pngs
See merge request GNOME/gtk!7196
2024-04-29 10:27:16 +00:00
Matthias Clasen
bef6352401
More consistency fixes for texture utils
...
Be consistent about filename vs path.
2024-04-29 00:42:49 -04:00
Matthias Clasen
60a43ddce0
All non-integral scales in texture utils
...
This might be used with fractional scales in the future.
2024-04-29 00:35:27 -04:00
Matthias Clasen
90c9e88ee9
scaler: Consistency fixes
...
Follow the pattern that we use in GDK:
scale_factor = int
scale = double
2024-04-29 00:35:27 -04:00
Matthias Clasen
d860bf95ab
Consistency fixes for texture utils
...
Use the with_fg naming consistently.
2024-04-29 00:35:27 -04:00
Matthias Clasen
a3bd0a3e17
gsk: Cosmetics
...
Tweak a profiler counter name.
2024-04-28 23:54:55 -04:00
Matthias Clasen
d274c7df06
testsuite: Make offload tests more robust
...
Skip the offload tests when we find ourselves in situations
where offloading won't work.
2024-04-28 23:54:55 -04:00
Matthias Clasen
9a5f482e1a
reftests: Stop using xpm images
...
We are phasing out the fringe pixbuf loaders, so xpm is going
away as a default-supported image format.
2024-04-28 23:54:55 -04:00
Matthias Clasen
2f6140c066
docs: Clarify the cairo interaction section
...
This was giving outdated advice.
2024-04-28 23:54:55 -04:00
Matthias Clasen
9ce4471527
Speed up symbolic svg loading
...
If the svg doesn't use the symbolic style classes, we can avoid
loading it multiple times.
This brought the time for loading system-run-symbolic at 256@2
from 6.8ms down to 2ms.
2024-04-28 23:54:03 -04:00
Matthias Clasen
cda4ec48b2
Merge branch 'doc-fixes' into 'main'
...
gskpathbuilder: Fix doc typo
See merge request GNOME/gtk!7200
2024-04-29 03:52:04 +00:00
Matthias Clasen
d9582c123e
inspector: Cosmetics
...
We've been using title capitalization and spelled out names
in the node details pane, so be consistent.
2024-04-28 23:44:18 -04:00
Matthias Clasen
4d30aacb0c
Reencode all our symbolic pngs
...
This adds the only-foreground information and will let us use
these symbolics more efficiently.
2024-04-28 23:42:02 -04:00
Matthias Clasen
4862c3f779
Add 'only foreground' to texture utility api
...
Add an 'only_fg' argument to all our internal texture utility
api, so GtkIconTheme can find out if a symbolic png or svg uses
colors beyond the foreground or not.
This information is used in gtk_symbolic_paintable_snapshot_symbolic
to optimize rendering of such symbolic icons.
2024-04-28 23:42:02 -04:00
Matthias Clasen
08d1353cde
loaders: Make it possible to load png options
...
We want to store some metadata in our symbolic pngs, so make it
possible to get options when loading a png, along with the texture.
Update all callers.
2024-04-28 23:42:02 -04:00
Matthias Clasen
585dadf575
Small optimization
...
Avoid copying a potentially large blob more than necessary.
2024-04-28 23:42:02 -04:00
Joshua Lee
d069eb173a
path builder: Fix doc typo
2024-04-28 22:24:38 +01:00
Matthias Clasen
6015560b63
Merge branch 'wip/otte/for-main' into 'main'
...
various fixes
Closes #6668 and #6656
See merge request GNOME/gtk!7194
2024-04-28 19:44:58 +00:00
Benjamin Otte
5a776389d7
reftests: Use longer words when testing wrapping
...
"Hello" might be shorter than "Hi Ho" in some fonts and then that one
gets wrapped, too.
So choose perfectly cromulent words for this purpose instead.
2024-04-28 13:51:42 +02:00
Benjamin Otte
6c2dfed5a5
inspector: Add details for textures
...
In particular, add all the dmabuf texture details.
I originally wanted this just to see if a texture was the type I
expected it to be while debugging, but then I thought "why not add the
rest, too?"
I did not add GL-internal texture details (like GL format,
internalformat etc), because that would require a make_current().
2024-04-28 13:51:42 +02:00
Benjamin Otte
7dec24c2cc
inspector: Make add_text_row() be a printf-style function
...
There's a few cases where I had to add "%s" as the format string, but
most changes got rid of printf() + free() combinations.
2024-04-28 13:51:42 +02:00
Benjamin Otte
c20e7a0c5d
glcontext: Split dmabuf import codepaths
...
Use different codepaths for known formats vs unknown formats.
Be more careful with unknown formats and always import them as
GL_TEXTURE_EXTERNAL_OES when possible (GL can't do EXTERNAL) to avoid
problems.
This is a more defensive approach towards older drivers that don't
support modifiers.
This fixes importing YUV textures on AMD Gen8.
Another approach would be to check for YUV and never try
GL_TEXTURE_2D with them, but I decided to go this way first.
Fixes #6668
2024-04-28 13:51:42 +02:00
Benjamin Otte
719021e1f4
gpu: Handle tiny offscreens
...
Due to rounding errors, it is possible after intersecting a lot of
rectangles to end up with a tiny size for an offscreen. And because we
allow an epsilon before ceil()ing to an integer (see commit afc7b46264
for details) it is now possible that we end up with a size of 0.
Avoid that by always enforcing a minimum size of 1px.
Test included
The test uses a different codepath to arrive at the same problem - it
specifies the small size instead of triggering it via rounding errors
and clipping like the original bug (and most likely the more common case
to encounter this problem.
Fixes #6656
2024-04-28 13:51:42 +02:00
Benjamin Otte
4856e115a9
path: document enum
2024-04-28 08:33:03 +02:00
Matthias Clasen
bfb5bbe862
Merge branch 'matthiasc/for-main' into 'main'
...
wayland: Break out dmabuf feedback code
See merge request GNOME/gtk!7193
2024-04-27 23:09:20 +00:00
Matthias Clasen
b98c86fb7b
wayland: Break out dmabuf feedback code
...
This will need to be used in surfaces as well, in the future.
Prepare for that by moving this code into its own file and struct.
2024-04-27 11:47:26 -04:00
Matthias Clasen
e01c3f581e
Merge branch 'fix-profiler-mark' into 'main'
...
gsk: Fix a profiler mark
See merge request GNOME/gtk!7192
2024-04-27 15:47:01 +00:00
Matthias Clasen
c45199e388
gsk: Fix a profiler mark
...
I messed this up in f26efd9adf
.
2024-04-27 10:23:45 -04:00
Matthias Clasen
27fb9917d8
Merge branch 'matthiasc/for-main' into 'main'
...
atcontext: Add a few missing values
Closes #6575
See merge request GNOME/gtk!7190
2024-04-26 23:16:31 +00:00
Matthias Clasen
b5d6613a3f
atcontext: Add a few missing values
...
Add a missing value to the naming array, and sort the recent additions
alphabetically.
Fixes : #6575
2024-04-26 18:46:00 -04:00
Matthias Clasen
5dc77edbe3
Merge branch 'matthiasc/for-main' into 'main'
...
linkbutton: Report errors
Closes #6446
See merge request GNOME/gtk!7189
2024-04-26 22:26:14 +00:00
Matthias Clasen
a3d63b3579
label: Report errors
...
Print a warning when launching a handler fails.
2024-04-26 17:25:27 -04:00
Matthias Clasen
57c12a8661
linkbutton: Report errors
...
Print a warning when launching a handler fails.
Fixes : #6446
2024-04-26 17:25:13 -04:00
Matthias Clasen
f1ccb9b81a
Merge branch 'vulkan-gl-texture-warning' into 'main'
...
vulkan: Add a warning about GL textures
See merge request GNOME/gtk!7184
2024-04-26 20:16:27 +00:00
Matthias Clasen
2711cb8dcd
Merge branch 'wip/xdg-activation-token' into 'main'
...
Improve xdg-activation-token handling for non-dbus activation
See merge request GNOME/gtk!7118
2024-04-26 18:32:08 +00:00
Matthias Clasen
c79925bd4a
Merge branch 'listview-oversights' into 'main'
...
listview: Fix some oversights
See merge request GNOME/gtk!7187
2024-04-26 18:27:49 +00:00
Matthias Clasen
05d5860dc0
listview: Fix some oversights
...
The list factory widget was notifying the wrong properties.
2024-04-26 11:19:59 -04:00
Matthias Clasen
a1fdf06d80
gsk: Add a warning for inefficient texture import
...
With GSK_DEBUG=fallback, warn if a non-memory texture has to be
downloaded for importing it into Vulkan or GL.
2024-04-26 11:04:47 -04:00
Matthias Clasen
36d7ca058e
Cosmetics
2024-04-26 10:59:21 -04:00
Matthias Clasen
2e08db91ca
Merge branch 'offload-snapshot-no-child' into 'main'
...
Don't crash if snapshotting a GtkGraphicsOffload without child
See merge request GNOME/gtk!7183
2024-04-25 20:46:31 +00:00
Sebastian Dröge
2c9b47ff3c
Don't crash if snapshotting a GtkGraphicsOffload without child
2024-04-25 22:46:35 +03:00