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>
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>
kmscube.c: init_drm(): enable k3 support
Enable k3 support by adding "tidss" to the modules list.
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
Enable k3 support by adding "tidss" to the modules list.
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
kmscube: pageflip for all displays in modeset
When kmscube is launched on all displays using kmscube -a,
drmModeSetCrtc is called on all CRTCs. It is required to
call drmModePageFlip for all the CRTCs as well.
Signed-off-by: Subhajit Paul <subhajit_paul@ti.com>
When kmscube is launched on all displays using kmscube -a,
drmModeSetCrtc is called on all CRTCs. It is required to
call drmModePageFlip for all the CRTCs as well.
Signed-off-by: Subhajit Paul <subhajit_paul@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 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>
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>
kmscube.c: init_drm(): select the current CRTC display mode is valid
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
kmscube.c: init_drm(): enable AM3 support
Enable AM3 support by adding "tilcdc" to the modules list.
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
Enable AM3 support by adding "tilcdc" to the modules list.
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
added support for rendering fixed number of frames
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
added signal handler for cleanup
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
Added cleanup of GBM, DRM and GL
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
kmscube: change to register only drm fd for select
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
Signed-off-by: Karthik Ramanan <a0393906@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>
* 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>
Add support for dual display in DRM
* support for an OpenGLES based dual display application
* checked on Jacinto6 EVM
Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
* support for an OpenGLES based dual display application
* checked on Jacinto6 EVM
Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
update debian/control version
Signed-off-by: Xavier Boudet <x-boudet@ti.com>
Signed-off-by: Xavier Boudet <x-boudet@ti.com>
Add more entries to gitignore
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Depend on recent libgbm >= 9
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Allow any architecture
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Do not depend on omap specific libraries
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
debian: initial debianization
Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
Makefile.am: remove need for m4 folder
The current Makefile.am requires the 'm4' folder, however
there is no need for it for the moment. that causes troubles when
building packages with Debian CDBS 'autoreconf' which does not
use the local autogen.sh script.
Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
The current Makefile.am requires the 'm4' folder, however
there is no need for it for the moment. that causes troubles when
building packages with Debian CDBS 'autoreconf' which does not
use the local autogen.sh script.
Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
Put vertex attribute data into a VBO.
This makes the division between set up (init_gl()), and draw (draw())
code cleaner, and should be more efficient in general.
Signed-off-by: Jesse Barker <jesse.barker@linaro.org>
This makes the division between set up (init_gl()), and draw (draw())
code cleaner, and should be more efficient in general.
Signed-off-by: Jesse Barker <jesse.barker@linaro.org>
update copyright
Found the original author of the gl cube code, so update the copyright
notice accordingly.
Found the original author of the gl cube code, so update the copyright
notice accordingly.
initial commit