The previous commit tries to create a 32bpp 1x1 dummy buffer
to know whether or not the modesetting driver can handle
our needs. It's concievable (though not realized in practice) that
the driver could support our needs fine, but not support buffers
as small as 1x1.
This commit uses the queried minimum buffer dimensions for the dummy
buffer instead of assuming 1x1.
unsigned long row_stride;
buffer_id = backend->driver_interface->create_buffer (backend->driver,
- 1, 1,
+ backend->resources->min_width,
+ backend->resources->min_height,
&row_stride);
if (buffer_id == 0)
{
- ply_trace ("Could not create 1x1 32bpp dummy buffer");
+ ply_trace ("Could not create minimal (%ux%u) 32bpp dummy buffer",
+ backend->resources->min_width,
+ backend->resources->min_height);
return false;
}