mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
kms_rotation_crc: Test the validity of the output first
So we don't need code to unwind what we just did. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
9cf7e8d35f
commit
143984a4f1
@ -78,6 +78,9 @@ static bool prepare_crtc(data_t *data)
|
||||
igt_output_set_pipe(output, data->pipe);
|
||||
igt_display_commit(display);
|
||||
|
||||
if (!data->output->valid)
|
||||
return false;
|
||||
|
||||
/* create the pipe_crc object for this pipe */
|
||||
if (data->pipe_crc)
|
||||
igt_pipe_crc_free(data->pipe_crc);
|
||||
@ -90,13 +93,6 @@ static bool prepare_crtc(data_t *data)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!data->output->valid) {
|
||||
igt_output_set_pipe(output, PIPE_ANY);
|
||||
igt_display_commit(display);
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (data->type) {
|
||||
|
||||
case DRM_PLANE_TYPE_OVERLAY: /* Sprite */
|
||||
|
Loading…
x
Reference in New Issue
Block a user