[Intel-gfx] [PATCH igt v3 09/11] igt/gem_exec_parse: update hsw_load_register_reg for v >= 8

Matthew Auld matthew.william.auld at gmail.com
Fri Nov 11 22:14:16 UTC 2016


On 9 November 2016 at 16:16, Robert Bragg <robert at sixbynine.org> wrote:
> This updates the checking of disallowed loads to set a distinguishable
> value before the load and explicitly check the load was a NOOP by
> reading back the final value.
>
> Signed-off-by: Robert Bragg <robert at sixbynine.org>
> ---
>  tests/gem_exec_parse.c | 20 ++++++++++++++++++--
>  1 file changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/tests/gem_exec_parse.c b/tests/gem_exec_parse.c
> index d6a2885..f241ab7 100644
> --- a/tests/gem_exec_parse.c
> +++ b/tests/gem_exec_parse.c
> @@ -305,12 +305,17 @@ static void hsw_load_register_reg(void)
>         };
>         int fd;
>         uint32_t handle;
> +       int parser_version;
> +       int bad_lrr_errno;
>
>         /* Open again to get a non-master file descriptor */
>         fd = drm_open_driver(DRIVER_INTEL);
>
> +       parser_version = command_parser_version(fd);
Ah, I was reading ahead, so move this to the fixture and re-use ?

Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list