kmscube: use open() instead of drmOpen() drmOpen() requires providing drm driver module names. Use open()to access device with generic DRM calls This generic open() usage will allow to execute kmscube in vDRM as well as omapdrm devices. This application also takes the device name /dev/dri/cardX and if not provided, /dev/dri/card0 is used as default device. Ex: kmscube -d /dev/dri/card1 Signed-off-by: Ramprasad N <x0038811@ti.com>
find the desired pixel format from the format list of the primary plane kmscube used to use hard-coded pixel format XRGB8888, which is no longer supported by the AM335x BBB where only RGB565 is supported. The patch enhanced kmscube to find the desired pixel format from the format list of the primary DRM plane Signed-off-by: Eric Ruei <e-ruei1@ti.com>
kmscube.c: init_drm(): handle usecase where display is disabled In some usecases HDMI is connected but is disabled by default. In such scenario, connector->encoder_id and encoder->crtc_id may be 0. This patch iterates over all possible encoders and CRTCs to find and store the encoder and CRTC accordingly. Signed-off-by: Eric Ruei <e-ruei1@ti.com>
choose the maximum resolution supported by a connector * select the maximum resolution among all connectors for render surface * add option to support specification of connector_id by the user * differentiate between connector_id and display_id * fix for anti-aliasing artifacts observed with HDMI essentially choose the first mode of a connector instead of the last mode Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>