diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-09-21 12:53:27 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-10-02 11:30:18 +0200 |
commit | 7df7e3bda6a206c15044dfd9804eddeee29d981b (patch) | |
tree | 2eb4a07aeca915e08224a0070b29a7922c05be96 /lib/igt_kms.h | |
parent | 5f6806472c2d413dec850e60ef452f5d55cc9912 (diff) |
tests: Stop looking at plane private members
Most of these tests have no reason to look at those members,
so try other ways of getting the information.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r-- | lib/igt_kms.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 3d1061fa..62197dcf 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -556,6 +556,27 @@ static inline bool igt_output_is_connected(igt_output_t *output) igt_assert_lt(0, drmModeAtomicAddProperty(req, output->config.connector->connector_id,\ output->config.atomic_props_connector[prop], value)) +/* + * igt_pipe_refresh: + * @display: a pointer to an #igt_display_t structure + * @pipe: Pipe to refresh + * @force: Should be set to true if mode_blob is no longer considered + * to be valid, for example after doing an atomic commit during fork or closing display fd. + * + * Requests the pipe to be part of the state on next update. + * This is useful when state may have been out of sync after + * a fork, or we just want to be sure the pipe is included + * in the next commit. + */ +static inline void +igt_pipe_refresh(igt_display_t *display, enum pipe pipe, bool force) +{ + if (force) + display->pipes[pipe].mode_blob = 0; + + display->pipes[pipe].mode_changed = true; +} + void igt_enable_connectors(void); void igt_reset_connectors(void); |