lib/kms: Add igt_display_commit2()
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 30 Jun 2014 23:44:24 +0000 (16:44 -0700)
committerDamien Lespiau <damien.lespiau@intel.com>
Fri, 4 Jul 2014 11:04:01 +0000 (12:04 +0100)
commit1c25547d48296c3058c9e1cc45b533746144a230
treee761c0ccc67312da04b873d60206bd0f0c72dc2c
parent2a3e212acc01742ac0a0f8bcf969e8a1ae2343b1
lib/kms: Add igt_display_commit2()

Add a new commit interface, igt_display_commit2(), that allows tests to
specify which programming API should be used to perform hardware
updates.  COMMIT_LEGACY is the only option for now, but universal
and atomic interfaces will be added as additional options in the future.

igt_display_commit() remains unchanged for existing tests that wish to
place the hardware in a specific state, but that don't care which API is
used to achieve that state.  The legacy API will be used by default for
now, but in the future we may decide to make the default API
configurable via an environment variable.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
lib/igt_kms.c
lib/igt_kms.h