From 2ca73bc7f7a2983556b132395c73739a01f167b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 1 Mar 2013 15:32:46 +0100 Subject: [PATCH] r600g: cleanup #include recursion between r600_pipe.h and evergreen_compute.h Reviewed-by: Tom Stellard --- src/gallium/drivers/r600/compute_memory_pool.c | 1 + src/gallium/drivers/r600/evergreen_compute.h | 2 +- src/gallium/drivers/r600/evergreen_compute_internal.c | 1 + src/gallium/drivers/r600/r600_pipe.c | 1 + src/gallium/drivers/r600/r600_pipe.h | 1 - src/gallium/drivers/r600/r600_resource.c | 1 + src/gallium/drivers/r600/r600_texture.c | 1 + 7 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c index 5b1cb1b7930..8896909bf8a 100644 --- a/src/gallium/drivers/r600/compute_memory_pool.c +++ b/src/gallium/drivers/r600/compute_memory_pool.c @@ -39,6 +39,7 @@ #include "r600_pipe.h" #include "r600_formats.h" #include "compute_memory_pool.h" +#include "evergreen_compute.h" #include "evergreen_compute_internal.h" #include diff --git a/src/gallium/drivers/r600/evergreen_compute.h b/src/gallium/drivers/r600/evergreen_compute.h index e68ebd8585e..db57520a74c 100644 --- a/src/gallium/drivers/r600/evergreen_compute.h +++ b/src/gallium/drivers/r600/evergreen_compute.h @@ -32,7 +32,7 @@ struct r600_atom; struct evergreen_compute_resource; -void *evergreen_create_compute_state(struct pipe_context *ctx, const const struct pipe_compute_state *cso); +void *evergreen_create_compute_state(struct pipe_context *ctx, const struct pipe_compute_state *cso); void evergreen_delete_compute_state(struct pipe_context *ctx, void *state); void evergreen_compute_upload_input(struct pipe_context *context, const uint *block_layout, const uint *grid_layout, const void *input); void evergreen_init_atom_start_compute_cs(struct r600_context *rctx); diff --git a/src/gallium/drivers/r600/evergreen_compute_internal.c b/src/gallium/drivers/r600/evergreen_compute_internal.c index 2e8e9daca62..60bb3bfb045 100644 --- a/src/gallium/drivers/r600/evergreen_compute_internal.c +++ b/src/gallium/drivers/r600/evergreen_compute_internal.c @@ -42,6 +42,7 @@ #include "r600_pipe.h" #include "r600_formats.h" #include "evergreend.h" +#include "evergreen_compute.h" #include "evergreen_compute_internal.h" #include "r600_hw_context_priv.h" diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 78002ae4000..f5bf0cec892 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -23,6 +23,7 @@ #include "r600_pipe.h" #include "r600_public.h" #include "r600_isa.h" +#include "evergreen_compute.h" #include "r600d.h" #include diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index cb520833c1c..c178285e8e5 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -33,7 +33,6 @@ #include "r600_llvm.h" #include "r600_public.h" #include "r600_resource.h" -#include "evergreen_compute.h" #define R600_NUM_ATOMS 38 diff --git a/src/gallium/drivers/r600/r600_resource.c b/src/gallium/drivers/r600/r600_resource.c index 5e637f64a4a..5962f8ac199 100644 --- a/src/gallium/drivers/r600/r600_resource.c +++ b/src/gallium/drivers/r600/r600_resource.c @@ -22,6 +22,7 @@ */ #include "r600_pipe.h" +#include "evergreen_compute.h" static struct pipe_resource *r600_resource_create(struct pipe_screen *screen, const struct pipe_resource *templ) diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index aefc40fca17..1c071cb2b74 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -25,6 +25,7 @@ * Corbin Simpson */ #include "r600_formats.h" +#include "evergreen_compute.h" #include "r600d.h" #include -- 2.30.2