mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
gsk: Add a debug flag for graphics offload
Add GSK_DEBUG=offload-disable to disable graphics offload via attaching of dmabufs to subsurfaces. This is not used anywhere yet.
This commit is contained in:
parent
00d7d4b17b
commit
0e0bf8ed47
@ -309,6 +309,9 @@ A number of options affect behavior instead of logging:
|
||||
`sync`
|
||||
: Sync after each frame
|
||||
|
||||
`offload-disable`
|
||||
: Disable graphics offload to subsurfaces
|
||||
|
||||
`vulkan-staging-image`
|
||||
: Use a staging image for Vulkan texture upload
|
||||
|
||||
|
@ -17,6 +17,7 @@ static const GdkDebugKey gsk_debug_keys[] = {
|
||||
{ "full-redraw", GSK_DEBUG_FULL_REDRAW, "Force full redraws" },
|
||||
{ "sync", GSK_DEBUG_SYNC, "Sync after each frame" },
|
||||
{ "staging", GSK_DEBUG_STAGING, "Use a staging image for texture upload (Vulkan only)" },
|
||||
{ "offload-disable", GSK_DEBUG_OFFLOAD_DISABLE, "Disable graphics offload" },
|
||||
};
|
||||
|
||||
static guint gsk_debug_flags;
|
||||
|
@ -19,7 +19,8 @@ typedef enum {
|
||||
GSK_DEBUG_GEOMETRY = 1 << 9,
|
||||
GSK_DEBUG_FULL_REDRAW = 1 << 10,
|
||||
GSK_DEBUG_SYNC = 1 << 11,
|
||||
GSK_DEBUG_STAGING = 1 << 12
|
||||
GSK_DEBUG_STAGING = 1 << 12,
|
||||
GSK_DEBUG_OFFLOAD_DISABLE = 1 << 13,
|
||||
} GskDebugFlags;
|
||||
|
||||
#define GSK_DEBUG_ANY ((1 << 13) - 1)
|
||||
|
Loading…
Reference in New Issue
Block a user