[Mesa-dev] [PATCH] gallium: create a debug screen wrapper around swrast screens

Marek Olšák maraeo at gmail.com
Sun Nov 20 15:56:04 UTC 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sun, Nov 20, 2016 at 3:42 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/gallium/auxiliary/target-helpers/inline_sw_helper.h | 3 +++
>  src/gallium/auxiliary/target-helpers/sw_helper.h        | 3 +++
>  2 files changed, 6 insertions(+)
>
> diff --git a/src/gallium/auxiliary/target-helpers/inline_sw_helper.h b/src/gallium/auxiliary/target-helpers/inline_sw_helper.h
> index 5bb77a5..3d9d824 100644
> --- a/src/gallium/auxiliary/target-helpers/inline_sw_helper.h
> +++ b/src/gallium/auxiliary/target-helpers/inline_sw_helper.h
> @@ -55,6 +55,9 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
>        screen = swr_create_screen(winsys);
>  #endif
>
> +   if (screen)
> +      screen = debug_screen_wrap(screen);
> +
>     return screen;
>  }
>
> diff --git a/src/gallium/auxiliary/target-helpers/sw_helper.h b/src/gallium/auxiliary/target-helpers/sw_helper.h
> index 5e4e9f7..d1945ad 100644
> --- a/src/gallium/auxiliary/target-helpers/sw_helper.h
> +++ b/src/gallium/auxiliary/target-helpers/sw_helper.h
> @@ -57,6 +57,9 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
>        screen = swr_create_screen(winsys);
>  #endif
>
> +   if (screen)
> +      screen = debug_screen_wrap(screen);
> +
>     return screen;
>  }
>
> --
> 2.7.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list