tests/monitor-test-utils: Add way to make the GAMMA_LUT zero sized

This will be used to test devices that has no gamma capabilities.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2611>
This commit is contained in:
Jonas Ådahl
2022-09-03 15:48:54 +02:00
committed by Marge Bot
parent b29604c3f8
commit c724cb3720
4 changed files with 20 additions and 1 deletions

View File

@ -666,6 +666,8 @@ meta_create_monitor_test_setup (MetaBackend *backend,
"id", (uint64_t) i + 1,
"gpu", meta_test_get_gpu (backend),
NULL);
if (setup->crtcs[i].disable_gamma_lut)
meta_crtc_test_disable_gamma_lut (META_CRTC_TEST (crtc));
test_setup->crtcs = g_list_append (test_setup->crtcs, crtc);
}