Signed-off-by: Imre Deak <imre.deak@intel.com>
return orig_vt_mode < 0 ? -1 : 0;
}
-static int get_connector_default_mode(int drm_fd, drmModeConnector *connector,
+int kmstest_get_connector_default_mode(int drm_fd, drmModeConnector *connector,
drmModeModeInfo *mode)
{
drmModeRes *resources;
goto err3;
found:
- if (get_connector_default_mode(drm_fd, connector,
+ if (kmstest_get_connector_default_mode(drm_fd, connector,
&config->default_mode) < 0)
goto err4;
int pipe;
};
+int kmstest_get_connector_default_mode(int drm_fd, drmModeConnector *connector,
+ drmModeModeInfo *mode);
int kmstest_get_connector_config(int drm_fd, uint32_t connector_id,
unsigned long crtc_idx_mask,
struct kmstest_connector_config *config);