mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 14:45:46 +00:00
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>
This commit is contained in:
committed by
Damien Lespiau
parent
2a3e212acc
commit
1c25547d48
@@ -65,6 +65,12 @@ enum port {
|
||||
};
|
||||
#define port_name(p) ((p) + 'A')
|
||||
|
||||
enum igt_commit_style {
|
||||
COMMIT_LEGACY = 0,
|
||||
COMMIT_UNIVERSAL,
|
||||
/* We'll add atomic here eventually. */
|
||||
};
|
||||
|
||||
#include "igt_fb.h"
|
||||
|
||||
struct kmstest_connector_config {
|
||||
@@ -150,6 +156,7 @@ void igt_set_vt_graphics_mode(void);
|
||||
|
||||
void igt_display_init(igt_display_t *display, int drm_fd);
|
||||
void igt_display_fini(igt_display_t *display);
|
||||
int igt_display_commit2(igt_display_t *display, enum igt_commit_style s);
|
||||
int igt_display_commit(igt_display_t *display);
|
||||
int igt_display_get_n_pipes(igt_display_t *display);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user