mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
kms_cursor_crc: Fix crc readout after a subtest failure
If a subtest fails, it'll leave the pipe CRC file open, which will prevent subsequent subtests from opening the file. Make sure the file is cloesed before trying to open it again. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
e1e5856b3c
commit
3d371a7284
@ -238,6 +238,9 @@ static bool prepare_crtc(test_data_t *test_data, uint32_t connector_id)
|
||||
|
||||
connector_set_mode(data, &connector, &connector.config.default_mode);
|
||||
|
||||
igt_pipe_crc_free(data->pipe_crc[test_data->crtc_idx]);
|
||||
data->pipe_crc[test_data->crtc_idx] = NULL;
|
||||
|
||||
pipe_crc = create_crc(data, test_data->crtc_idx);
|
||||
if (!pipe_crc) {
|
||||
printf("auto crc not supported on this connector with crtc %i\n",
|
||||
@ -299,6 +302,7 @@ static void run_test(data_t *data, enum cursor_type cursor_type, bool onscreen)
|
||||
igt_subtest_name(), test_data.crtc_id, connector_id);
|
||||
|
||||
igt_pipe_crc_free(data->pipe_crc[test_data.crtc_idx]);
|
||||
data->pipe_crc[test_data.crtc_idx] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user