mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-13 02:46:23 +00:00
tests/debugfs_pipe_crc: set mode before creating CRC helper
Otherwise the automagic skipping for DP ports on gmch platforms won't work. v2: We also need to just skip that connector, not the entire subtest. kms_cursor_crc still needs to be updated. Cc: Damien Lespiau <damien.lespiau@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
842007154d
commit
8bb5730d28
@ -162,18 +162,20 @@ static void test_read_crc(data_t *data, int pipe, unsigned flags)
|
|||||||
|
|
||||||
if (!connector->valid)
|
if (!connector->valid)
|
||||||
continue;
|
continue;
|
||||||
valid_connectors++;
|
|
||||||
|
|
||||||
fprintf(stdout, "%s: Testing connector %u\n",
|
fprintf(stdout, "%s: Testing connector %u\n",
|
||||||
igt_subtest_name(), connector->config.connector->connector_id);
|
igt_subtest_name(), connector->config.connector->connector_id);
|
||||||
|
|
||||||
|
connector_set_mode(data, connector, &connector->config.default_mode);
|
||||||
|
|
||||||
pipe_crc = igt_pipe_crc_new(&data->debugfs, data->drm_fd,
|
pipe_crc = igt_pipe_crc_new(&data->debugfs, data->drm_fd,
|
||||||
connector->config.pipe,
|
connector->config.pipe,
|
||||||
INTEL_PIPE_CRC_SOURCE_AUTO);
|
INTEL_PIPE_CRC_SOURCE_AUTO);
|
||||||
|
|
||||||
connector_set_mode(data, connector, &connector->config.default_mode);
|
if (!pipe_crc)
|
||||||
|
continue;
|
||||||
|
valid_connectors++;
|
||||||
|
|
||||||
igt_require(pipe_crc);
|
|
||||||
igt_assert(igt_pipe_crc_start(pipe_crc));
|
igt_assert(igt_pipe_crc_start(pipe_crc));
|
||||||
|
|
||||||
/* wait for 3 vblanks and the corresponding 3 CRCs */
|
/* wait for 3 vblanks and the corresponding 3 CRCs */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user