mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-14 11:26:35 +00:00
kms_frontbuffer_tracking: don't fail fbc-farfromfence on SKL
SKL doesn't do the same dspaddr_offset magic as the older gens, so FBC may not be enabled on fbc-farfromfence. This is not a bug since FBC is just disabled, and this is the expected case of the current Kernel, so let's not fail the test. If/once we land the proper infrastructure to fix this in the Kernel we may revert this commit. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
556535400c
commit
b87188795e
@ -2820,9 +2820,10 @@ static void farfromfence_subtest(const struct test_mode *t)
|
|||||||
struct modeset_params *params = pick_params(t);
|
struct modeset_params *params = pick_params(t);
|
||||||
struct draw_pattern_info *pattern = &pattern1;
|
struct draw_pattern_info *pattern = &pattern1;
|
||||||
struct fb_region *target;
|
struct fb_region *target;
|
||||||
int max_height;
|
int max_height, assertions = 0;
|
||||||
|
int gen = intel_gen(intel_get_drm_devid(drm.fd));
|
||||||
|
|
||||||
switch (intel_gen(intel_get_drm_devid(drm.fd))) {
|
switch (gen) {
|
||||||
case 2:
|
case 2:
|
||||||
max_height = 2048;
|
max_height = 2048;
|
||||||
break;
|
break;
|
||||||
@ -2834,6 +2835,11 @@ static void farfromfence_subtest(const struct test_mode *t)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Gen 9 doesn't do the same dspaddr_offset magic as the older
|
||||||
|
* gens, so FBC may not be enabled there. */
|
||||||
|
if (gen >= 9)
|
||||||
|
assertions |= DONT_ASSERT_FEATURE_STATUS;
|
||||||
|
|
||||||
prepare_subtest(t, pattern);
|
prepare_subtest(t, pattern);
|
||||||
target = pick_target(t, params);
|
target = pick_target(t, params);
|
||||||
|
|
||||||
@ -2846,13 +2852,14 @@ static void farfromfence_subtest(const struct test_mode *t)
|
|||||||
params->fb.x = 0;
|
params->fb.x = 0;
|
||||||
params->fb.y = max_height - params->mode->vdisplay;
|
params->fb.y = max_height - params->mode->vdisplay;
|
||||||
set_mode_for_params(params);
|
set_mode_for_params(params);
|
||||||
do_assertions(0);
|
do_assertions(assertions);
|
||||||
|
|
||||||
for (r = 0; r < pattern->n_rects; r++) {
|
for (r = 0; r < pattern->n_rects; r++) {
|
||||||
draw_rect(pattern, target, t->method, r);
|
draw_rect(pattern, target, t->method, r);
|
||||||
update_wanted_crc(t, &pattern->crcs[t->format][r]);
|
update_wanted_crc(t, &pattern->crcs[t->format][r]);
|
||||||
|
|
||||||
/* GTT draws disable PSR. */
|
/* GTT draws disable PSR. */
|
||||||
do_assertions(ASSERT_PSR_DISABLED);
|
do_assertions(assertions | ASSERT_PSR_DISABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
igt_remove_fb(drm.fd, &tall_fb);
|
igt_remove_fb(drm.fd, &tall_fb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user