card: fix has_atomic if libdrm does not have atomic support
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 11 Nov 2015 18:50:55 +0000 (20:50 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 11 Nov 2015 18:50:55 +0000 (20:50 +0200)
commit131a6e455743b757f8a5f79aefa956b046dce4ba
tree7d79caf493fd734df9acb8480f7af85b0f4183ce
parent3ba7c3f1d0298306af37471027a5fc9e204ece8c
card: fix has_atomic if libdrm does not have atomic support

If libdrm was missing DRM_CLIENT_CAP_ATOMIC, but the driver still
supported atomic modesetting, m_has_atomic was set to true. The end
result was that test apps thought they can use atomic modesetting, but
it wasn't functional in the libkmsxx.
libkms++/card.cpp