mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 14:23:03 +00:00
lib/igt_kms: set_vt_graphics_mode is a low-level helper
So give it a kmstest_ prefix and shuffle it around a bit. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+9
-5
@@ -287,12 +287,16 @@ static void restore_vt_mode_at_exit(int sig)
|
||||
set_vt_mode(orig_vt_mode);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the VT to graphics mode and install an exit handler to restore the
|
||||
* original mode.
|
||||
/**
|
||||
* kmstest_set_vt_graphics_mode:
|
||||
*
|
||||
* Sets the controlling VT (if available) into graphics/raw mode and installs an
|
||||
* igt exit handler to set the VT back to text mode on exit.
|
||||
*
|
||||
* All kms tests must call this function to make sure that the fbcon doesn't
|
||||
* interfere by e.g. blanking the screen.
|
||||
*/
|
||||
|
||||
void igt_set_vt_graphics_mode(void)
|
||||
void kmstest_set_vt_graphics_mode(void)
|
||||
{
|
||||
long ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user