monitor-test-utils: Add max_bpc field
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2412>
This commit is contained in:
parent
03336788fb
commit
cc203e241d
@ -387,11 +387,17 @@ meta_check_monitor_configuration (MetaContext *context,
|
|||||||
{
|
{
|
||||||
MetaOutput *output = l_output->data;
|
MetaOutput *output = l_output->data;
|
||||||
uint64_t winsys_id = expect->monitors[i].outputs[j];
|
uint64_t winsys_id = expect->monitors[i].outputs[j];
|
||||||
|
unsigned int output_max_bpc;
|
||||||
|
|
||||||
g_assert (output == output_from_winsys_id (backend, winsys_id));
|
g_assert (output == output_from_winsys_id (backend, winsys_id));
|
||||||
g_assert_cmpint (expect->monitors[i].is_underscanning,
|
g_assert_cmpint (expect->monitors[i].is_underscanning,
|
||||||
==,
|
==,
|
||||||
meta_output_is_underscanning (output));
|
meta_output_is_underscanning (output));
|
||||||
|
|
||||||
|
if (!meta_output_get_max_bpc (output, &output_max_bpc))
|
||||||
|
output_max_bpc = 0;
|
||||||
|
|
||||||
|
g_assert_cmpint (expect->monitors[i].max_bpc, ==, output_max_bpc);
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_monitor_get_physical_dimensions (monitor, &width_mm, &height_mm);
|
meta_monitor_get_physical_dimensions (monitor, &width_mm, &height_mm);
|
||||||
@ -778,6 +784,8 @@ meta_create_monitor_test_setup (MetaBackend *backend,
|
|||||||
|
|
||||||
output_assignment = (MetaOutputAssignment) {
|
output_assignment = (MetaOutputAssignment) {
|
||||||
.is_underscanning = setup->outputs[i].is_underscanning,
|
.is_underscanning = setup->outputs[i].is_underscanning,
|
||||||
|
.has_max_bpc = !!setup->outputs[i].max_bpc,
|
||||||
|
.max_bpc = setup->outputs[i].max_bpc,
|
||||||
};
|
};
|
||||||
meta_output_assign_crtc (output, crtc, &output_assignment);
|
meta_output_assign_crtc (output, crtc, &output_assignment);
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,7 @@ typedef struct _MonitorTestCaseOutput
|
|||||||
float scale;
|
float scale;
|
||||||
gboolean is_laptop_panel;
|
gboolean is_laptop_panel;
|
||||||
gboolean is_underscanning;
|
gboolean is_underscanning;
|
||||||
|
unsigned int max_bpc;
|
||||||
const char *serial;
|
const char *serial;
|
||||||
MetaMonitorTransform panel_orientation_transform;
|
MetaMonitorTransform panel_orientation_transform;
|
||||||
gboolean hotplug_mode;
|
gboolean hotplug_mode;
|
||||||
@ -157,6 +158,7 @@ typedef struct _MonitorTestCaseMonitor
|
|||||||
int width_mm;
|
int width_mm;
|
||||||
int height_mm;
|
int height_mm;
|
||||||
gboolean is_underscanning;
|
gboolean is_underscanning;
|
||||||
|
unsigned int max_bpc;
|
||||||
} MonitorTestCaseMonitor;
|
} MonitorTestCaseMonitor;
|
||||||
|
|
||||||
typedef struct _MonitorTestCaseLogicalMonitor
|
typedef struct _MonitorTestCaseLogicalMonitor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user