mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Log available KMS/DRM modes.
This commit is contained in:
parent
f804adae21
commit
99bc686266
@ -345,6 +345,14 @@ nextgpu:
|
|||||||
|
|
||||||
g_drm_mode = &g_connector->modes[0];
|
g_drm_mode = &g_connector->modes[0];
|
||||||
|
|
||||||
|
for (i = 0; i < g_connector->count_modes; i++)
|
||||||
|
{
|
||||||
|
RARCH_LOG("[KMS/EGL]: Mode %d: (%s) %d x %d, %u Hz\n", i,
|
||||||
|
g_connector->modes[i].name,
|
||||||
|
g_connector->modes[i].hdisplay, g_connector->modes[i].vdisplay,
|
||||||
|
g_connector->modes[i].vrefresh);
|
||||||
|
}
|
||||||
|
|
||||||
g_crtc_id = g_encoder->crtc_id;
|
g_crtc_id = g_encoder->crtc_id;
|
||||||
g_orig_crtc = drmModeGetCrtc(g_drm_fd, g_crtc_id);
|
g_orig_crtc = drmModeGetCrtc(g_drm_fd, g_crtc_id);
|
||||||
if (!g_orig_crtc)
|
if (!g_orig_crtc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user