[Mesa-dev] [PATCH 03/11] compiler: Move blob up a level

Nicolai Hähnle nhaehnle at gmail.com
Thu Oct 12 06:21:25 UTC 2017


On 11.10.2017 22:38, Jason Ekstrand wrote:
> We're going to want to use the blob for Vulkan pipeline caching so it
> makes sense to have it in libcompiler not libglsl.
> ---
>   src/compiler/Makefile.sources            | 4 ++--
>   src/compiler/{glsl => }/blob.c           | 0
>   src/compiler/{glsl => }/blob.h           | 0
>   src/mesa/state_tracker/st_shader_cache.h | 2 +-

This needs to update the Meson build system as well.

(That's why I complained about having duplicated source file lists...)

Cheers,
Nicolai

>   4 files changed, 3 insertions(+), 3 deletions(-)
>   rename src/compiler/{glsl => }/blob.c (100%)
>   rename src/compiler/{glsl => }/blob.h (100%)
> 
> diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources
> index 36906f4..b500368 100644
> --- a/src/compiler/Makefile.sources
> +++ b/src/compiler/Makefile.sources
> @@ -1,4 +1,6 @@
>   LIBCOMPILER_FILES = \
> +	blob.c \
> +	blob.h \
>   	builtin_type_macros.h \
>   	glsl_types.cpp \
>   	glsl_types.h \
> @@ -17,8 +19,6 @@ LIBGLSL_FILES = \
>   	glsl/ast_function.cpp \
>   	glsl/ast_to_hir.cpp \
>   	glsl/ast_type.cpp \
> -	glsl/blob.c \
> -	glsl/blob.h \
>   	glsl/builtin_functions.cpp \
>   	glsl/builtin_functions.h \
>   	glsl/builtin_int64.h \
> diff --git a/src/compiler/glsl/blob.c b/src/compiler/blob.c
> similarity index 100%
> rename from src/compiler/glsl/blob.c
> rename to src/compiler/blob.c
> diff --git a/src/compiler/glsl/blob.h b/src/compiler/blob.h
> similarity index 100%
> rename from src/compiler/glsl/blob.h
> rename to src/compiler/blob.h
> diff --git a/src/mesa/state_tracker/st_shader_cache.h b/src/mesa/state_tracker/st_shader_cache.h
> index f9e4615..090d7d8 100644
> --- a/src/mesa/state_tracker/st_shader_cache.h
> +++ b/src/mesa/state_tracker/st_shader_cache.h
> @@ -22,7 +22,7 @@
>    */
>   
>   #include "st_context.h"
> -#include "compiler/glsl/blob.h"
> +#include "compiler/blob.h"
>   #include "main/mtypes.h"
>   #include "pipe/p_state.h"
>   #include "util/disk_cache.h"
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list