mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 09:40:10 +00:00
gpu: verbose-print if shaders are inside merged ops
This is useful when trying to get more ops merged for performance reasons.
This commit is contained in:
parent
748acaf654
commit
a8748598b6
@ -15,10 +15,17 @@ gsk_gpu_print_indent (GString *string,
|
||||
|
||||
void
|
||||
gsk_gpu_print_shader_flags (GString *string,
|
||||
GskGpuShaderFlags flags)
|
||||
GskGpuShaderFlags flags,
|
||||
gboolean first)
|
||||
{
|
||||
GskGpuShaderClip clip = gsk_gpu_shader_flags_get_clip (flags);
|
||||
|
||||
g_string_append (string, first ? "+ " : "| ");
|
||||
#if 0
|
||||
g_string_append (string, first ? (last ? "⧫ " : "▲ ")
|
||||
: (last ? "▼ " : "▮ "));
|
||||
#endif
|
||||
|
||||
switch (clip)
|
||||
{
|
||||
case GSK_GPU_SHADER_CLIP_NONE:
|
||||
|
@ -18,7 +18,8 @@ void gsk_gpu_print_newline (GString
|
||||
void gsk_gpu_print_string (GString *string,
|
||||
const char *s);
|
||||
void gsk_gpu_print_shader_flags (GString *string,
|
||||
GskGpuShaderFlags flags);
|
||||
GskGpuShaderFlags flags,
|
||||
gboolean first);
|
||||
void gsk_gpu_print_color_states (GString *string,
|
||||
GskGpuColorStates color_states);
|
||||
void gsk_gpu_print_enum (GString *string,
|
||||
|
@ -52,7 +52,7 @@ gsk_gpu_shader_op_print (GskGpuOp *op,
|
||||
for (i = 0; i < self->n_ops; i++)
|
||||
{
|
||||
gsk_gpu_print_op (string, indent, shader_name);
|
||||
gsk_gpu_print_shader_flags (string, self->flags);
|
||||
gsk_gpu_print_shader_flags (string, self->flags, i == 0);
|
||||
gsk_gpu_print_color_states (string, self->color_states);
|
||||
shader_class->print_instance (self,
|
||||
instance + i * shader_class->vertex_size,
|
||||
|
Loading…
Reference in New Issue
Block a user