If we pass in screen geometry here when trying to set an output mode,
we can encounter "out of memory" errors from libdrm with outputs
that have a high resolution. As it turns out, we should be passing 0, 0 for
the x/y values when trying to set an output mode.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
buffer = output->ocrtc->buffer_id;
if (sym_drmModeSetCrtc(output->fd, output->crtc_id, buffer,
- x, y, &output->conn_id, 1, &mode->info) < 0)
+ 0, 0, &output->conn_id, 1, &mode->info) < 0)
{
ERR("Failed to set Mode %dx%d for Output %s: %m",
mode->width, mode->height, output->name);