[igt-dev] [Intel-gfx] [RFT i-g-t] tests/prime_vgem/basic-fence-flip: Probe display resolution

Chris Wilson chris at chris-wilson.co.uk
Wed Apr 10 11:48:52 UTC 2019


Quoting Tvrtko Ursulin (2019-04-10 12:43:22)
> @@ -754,8 +768,8 @@ static void test_flip(int i915, int vgem, unsigned hang)
>                 uint32_t offsets[4] = {};
>                 int fd;
>  
> -               bo[i].width = 1024;
> -               bo[i].height = 768;
> +               bo[i].width = mode->hdisplay;
> +               bo[i].height = mode->vdisplay;
>                 bo[i].bpp = 32;
>                 vgem_create(vgem, &bo[i]);

That may not result in a buffer that we are able to flip to. :|
width = ALIGN(hdisplay, 16); vdisplay should be ok.

I would query what happened to the scalers though :)
-Chris


More information about the igt-dev mailing list