[Intel-gfx] [PATCH v2 6/7] tests/kms_ccs: Test case where CCS is on a different BO

Daniel Stone daniel at fooishbar.org
Tue Sep 5 08:05:01 UTC 2017


Hi Gabriel,

On 31 August 2017 at 06:58, Gabriel Krisman Bertazi
<krisman at collabora.co.uk> wrote:
> +               if (data->flags & TEST_BAD_CCS_HANDLE) {
> +                       /* Put the CCS buffer on a different BO. */
> +                       f.handles[0] = gem_create(data->drm_fd, size[0]);
> +                       ccs_handle = gem_create(data->drm_fd, size[1]);
> +                       f.offsets[1] = 0;

This could be caught by offsets[1] < size[0] checking. Could you
please create both BOs with (size[0] + size[1]), and set (offset[1] ==
size[0])? In other words, the only thing differing at all is the BO.

Cheers,
Daniel


More information about the Intel-gfx mailing list