[Intel-gfx] [PATCH v2 5/7] tests/kms_ccs: Test case where CCS and main buffer overlaps

Daniel Stone daniel at fooishbar.org
Tue Sep 5 08:06:51 UTC 2017


On 31 August 2017 at 06:58, Gabriel Krisman Bertazi
<krisman at collabora.co.uk> wrote:
> @@ -321,7 +322,13 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
>                 int ccs_height = ALIGN(height, 16) / 16;
>                 f.pitches[1] = ALIGN(ccs_width * 1, 128);
>                 f.modifier[1] = modifier;
> -               f.offsets[1] = size[0];
> +
> +               if (data->flags & TEST_BAD_CCS_OFFSET) {
> +                       /* Overlap CCS buffer with the color buffer. */
> +                       f.offsets[1] = 0;

How about size[0] - 1024? That will give us an aligned-to-128 value
which looks plausible, and should overlap actual colour data.

Cheers,
Daniel


More information about the Intel-gfx mailing list