[Mesa-dev] [PATCH 05/48] gallium: fix ddebug on windows

Marek Olšák maraeo at gmail.com
Tue Jun 12 03:50:47 UTC 2018


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

Marek

On Mon, Jun 11, 2018 at 6:55 PM, Dylan Baker <dylan at pnwbakers.com> wrote:

> by including the proper headers for getpid and for mkdir.
> ---
>  src/gallium/auxiliary/driver_ddebug/dd_util.h | 6 +++++-
>  src/gallium/auxiliary/meson.build             | 6 ++++++
>  2 files changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/auxiliary/driver_ddebug/dd_util.h
> b/src/gallium/auxiliary/driver_ddebug/dd_util.h
> index 8953e34d588..bcf026f2ef9 100644
> --- a/src/gallium/auxiliary/driver_ddebug/dd_util.h
> +++ b/src/gallium/auxiliary/driver_ddebug/dd_util.h
> @@ -37,9 +37,13 @@
>  #include "util/u_debug.h"
>
>  #include "pipe/p_config.h"
> -#ifdef PIPE_OS_UNIX
> +#if defined(PIPE_OS_UNIX)
>  #include <unistd.h>
>  #include <sys/stat.h>
> +#elif defined(PIPE_OS_WINDOWS)
> +#include <direct.h>
> +#include <process.h>
> +#define mkdir(dir, mode) _mkdir(dir)
>  #endif
>
>
> diff --git a/src/gallium/auxiliary/meson.build
> b/src/gallium/auxiliary/meson.build
> index 92cfb8f7af5..48f3ef9b8ea 100644
> --- a/src/gallium/auxiliary/meson.build
> +++ b/src/gallium/auxiliary/meson.build
> @@ -106,6 +106,12 @@ files_libgallium = files(
>    'driver_trace/tr_screen.h',
>    'driver_trace/tr_texture.c',
>    'driver_trace/tr_texture.h',
> +  'driver_ddebug/dd_context.c',
> +  'driver_ddebug/dd_draw.c',
> +  'driver_ddebug/dd_pipe.h',
> +  'driver_ddebug/dd_public.h',
> +  'driver_ddebug/dd_screen.c',
> +  'driver_ddebug/dd_util.h',
>    'hud/font.c',
>    'hud/font.h',
>    'hud/hud_context.c',
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180611/82831f7e/attachment.html>


More information about the mesa-dev mailing list