diff options
author | Marek Olšák <[email protected]> | 2020-03-25 21:11:44 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-27 21:00:09 +0000 |
commit | e5339fe4a47c242693962c9f90bbab8b74935cba (patch) | |
tree | f625ba8d1d8c073b7b13d07f259da701e6339e4f /src/compiler | |
parent | 6cfe074b8617f92b4538f3006b0c4e55d6681436 (diff) |
Move compiler.h and imports.h/c from src/mesa/main into src/util
Reviewed-by: Timothy Arceri <[email protected]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4324>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/SConscript.glsl | 2 | ||||
-rw-r--r-- | src/compiler/glsl/gl_nir_lower_buffers.c | 2 | ||||
-rw-r--r-- | src/compiler/glsl/gl_nir_lower_samplers_as_deref.c | 2 | ||||
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/ir_clone.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/linker.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/tests/builtin_variable_test.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/tests/copy_constant_to_storage_tests.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/tests/general_ir_test.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/tests/invalidate_locations_test.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/tests/lower_int64_test.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/tests/sampler_types_test.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/tests/set_uniform_initializer_tests.cpp | 2 | ||||
-rw-r--r-- | src/compiler/glsl/tests/varyings_test.cpp | 2 | ||||
-rw-r--r-- | src/compiler/nir/nir_opt_copy_propagate.c | 2 |
15 files changed, 14 insertions, 16 deletions
diff --git a/src/compiler/SConscript.glsl b/src/compiler/SConscript.glsl index 7de4ff8c45a..85abfbac78a 100644 --- a/src/compiler/SConscript.glsl +++ b/src/compiler/SConscript.glsl @@ -71,7 +71,6 @@ if env['msvc']: # Copy these files to avoid generation object files into src/mesa/program env.Prepend(CPPPATH = ['#src/mesa/main']) -env.Command('glsl/imports.c', '#src/mesa/main/imports.c', Copy('$TARGET', '$SOURCE')) env.Command('glsl/extensions_table.c', '#src/mesa/main/extensions_table.c', Copy('$TARGET', '$SOURCE')) # Copy these files to avoid generation object files into src/mesa/program env.Prepend(CPPPATH = ['#src/mesa/program']) @@ -82,7 +81,6 @@ compiler_objs = env.StaticObject(source_lists['GLSL_COMPILER_CXX_FILES']) mesa_objs = env.StaticObject([ 'glsl/extensions_table.c', - 'glsl/imports.c', 'glsl/symbol_table.c', 'glsl/dummy_errors.c', ]) diff --git a/src/compiler/glsl/gl_nir_lower_buffers.c b/src/compiler/glsl/gl_nir_lower_buffers.c index 60ac1417355..b83df08a867 100644 --- a/src/compiler/glsl/gl_nir_lower_buffers.c +++ b/src/compiler/glsl/gl_nir_lower_buffers.c @@ -26,7 +26,7 @@ #include "gl_nir.h" #include "ir_uniform.h" -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" static nir_ssa_def * diff --git a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c index a0a5f018ad7..49a06cfabb6 100644 --- a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c +++ b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c @@ -61,7 +61,7 @@ #include "gl_nir.h" #include "ir_uniform.h" -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" struct lower_samplers_as_deref_state { diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index e6baf2add06..fe045eaca9b 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -37,7 +37,7 @@ #include "compiler/nir/nir_builtin_builder.h" #include "compiler/nir/nir_deref.h" #include "main/errors.h" -#include "main/imports.h" +#include "util/imports.h" #include "main/mtypes.h" #include "main/shaderobj.h" #include "util/u_math.h" diff --git a/src/compiler/glsl/ir_clone.cpp b/src/compiler/glsl/ir_clone.cpp index eb24ffe9be2..e46d07d6f43 100644 --- a/src/compiler/glsl/ir_clone.cpp +++ b/src/compiler/glsl/ir_clone.cpp @@ -22,7 +22,7 @@ */ #include <string.h> -#include "main/compiler.h" +#include "util/compiler.h" #include "ir.h" #include "compiler/glsl_types.h" #include "util/hash_table.h" diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 77e7489a0a6..e0f9c3d06de 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -86,7 +86,7 @@ #include "util/u_string.h" #include "util/u_math.h" -#include "main/imports.h" +#include "util/imports.h" #include "main/shaderobj.h" #include "main/enums.h" #include "main/mtypes.h" diff --git a/src/compiler/glsl/tests/builtin_variable_test.cpp b/src/compiler/glsl/tests/builtin_variable_test.cpp index cbaa9a385d7..6d97ce5b0ba 100644 --- a/src/compiler/glsl/tests/builtin_variable_test.cpp +++ b/src/compiler/glsl/tests/builtin_variable_test.cpp @@ -22,7 +22,7 @@ */ #include <gtest/gtest.h> #include "standalone_scaffolding.h" -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" #include "main/macros.h" #include "ir.h" diff --git a/src/compiler/glsl/tests/copy_constant_to_storage_tests.cpp b/src/compiler/glsl/tests/copy_constant_to_storage_tests.cpp index 2cce7238503..9f8bd112ce5 100644 --- a/src/compiler/glsl/tests/copy_constant_to_storage_tests.cpp +++ b/src/compiler/glsl/tests/copy_constant_to_storage_tests.cpp @@ -21,7 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ #include <gtest/gtest.h> -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" #include "main/macros.h" #include "util/ralloc.h" diff --git a/src/compiler/glsl/tests/general_ir_test.cpp b/src/compiler/glsl/tests/general_ir_test.cpp index e05ecf9c3d5..275cff2a999 100644 --- a/src/compiler/glsl/tests/general_ir_test.cpp +++ b/src/compiler/glsl/tests/general_ir_test.cpp @@ -21,7 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ #include <gtest/gtest.h> -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" #include "main/macros.h" #include "ir.h" diff --git a/src/compiler/glsl/tests/invalidate_locations_test.cpp b/src/compiler/glsl/tests/invalidate_locations_test.cpp index 48c8884d5e4..7b8317f87f2 100644 --- a/src/compiler/glsl/tests/invalidate_locations_test.cpp +++ b/src/compiler/glsl/tests/invalidate_locations_test.cpp @@ -21,7 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ #include <gtest/gtest.h> -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" #include "main/macros.h" #include "util/ralloc.h" diff --git a/src/compiler/glsl/tests/lower_int64_test.cpp b/src/compiler/glsl/tests/lower_int64_test.cpp index a7e8186e41b..196710a3c6c 100644 --- a/src/compiler/glsl/tests/lower_int64_test.cpp +++ b/src/compiler/glsl/tests/lower_int64_test.cpp @@ -21,7 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ #include <gtest/gtest.h> -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" #include "main/macros.h" #include "ir.h" diff --git a/src/compiler/glsl/tests/sampler_types_test.cpp b/src/compiler/glsl/tests/sampler_types_test.cpp index ef03158bba9..d44d840f694 100644 --- a/src/compiler/glsl/tests/sampler_types_test.cpp +++ b/src/compiler/glsl/tests/sampler_types_test.cpp @@ -21,7 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ #include <gtest/gtest.h> -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" #include "main/macros.h" #include "ir.h" diff --git a/src/compiler/glsl/tests/set_uniform_initializer_tests.cpp b/src/compiler/glsl/tests/set_uniform_initializer_tests.cpp index 2bcb25d466c..dfb7235fa8b 100644 --- a/src/compiler/glsl/tests/set_uniform_initializer_tests.cpp +++ b/src/compiler/glsl/tests/set_uniform_initializer_tests.cpp @@ -21,7 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ #include <gtest/gtest.h> -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" #include "main/macros.h" #include "util/ralloc.h" diff --git a/src/compiler/glsl/tests/varyings_test.cpp b/src/compiler/glsl/tests/varyings_test.cpp index 4ad73be381e..30df36acb2b 100644 --- a/src/compiler/glsl/tests/varyings_test.cpp +++ b/src/compiler/glsl/tests/varyings_test.cpp @@ -21,7 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ #include <gtest/gtest.h> -#include "main/compiler.h" +#include "util/compiler.h" #include "main/mtypes.h" #include "main/macros.h" #include "util/ralloc.h" diff --git a/src/compiler/nir/nir_opt_copy_propagate.c b/src/compiler/nir/nir_opt_copy_propagate.c index 0961d6bbf29..00c78f38451 100644 --- a/src/compiler/nir/nir_opt_copy_propagate.c +++ b/src/compiler/nir/nir_opt_copy_propagate.c @@ -26,7 +26,7 @@ */ #include "nir.h" -#include <main/imports.h> +#include <util/imports.h> /** * SSA-based copy propagation |