mesa/src/compiler
Erik Faye-Lund 2cd0779f83 nir/spirv: guard macros in case of redefinition
On some systems, these macros are already defined, and being defined
slightly differently causes them to emit redefinition-warnings.

Let's wrap them in ifdefs to avoid the warnings.

Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15084>
2022-02-21 19:47:17 +00:00
..
clc clc: Use kernel_arg_type_qual string to add const type qualifier to arg metadata 2021-11-15 07:47:00 -08:00
glsl nir/spirv: guard macros in case of redefinition 2022-02-21 19:47:17 +00:00
isaspec isaspec: add gen-based leaf bitset separation 2022-02-12 13:46:07 -05:00
nir nir/validate: don't add instrs not present in shader to shader_gc_list 2022-02-21 11:57:22 +00:00
spirv nir/spirv: guard macros in case of redefinition 2022-02-21 19:47:17 +00:00
builtin_type_macros.h glsl: add vec5 glsl types 2022-01-18 16:10:35 +08:00
glsl_types.cpp glsl: add vec5 glsl types 2022-01-18 16:10:35 +08:00
glsl_types.h compiler/types: Add a texture type 2021-10-16 05:49:34 +00:00
meson.build spirv: Use a single binary for gtests 2021-10-20 17:55:36 +00:00
nir_gl_types.h nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
nir_types.cpp nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
nir_types.h nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
shader_enums.c compiler: Extract num_mesh_vertices_per_primitive function. 2022-02-14 11:13:42 +01:00
shader_enums.h nir: Add some notes about const/uniform array access rules in GL. 2022-02-16 20:06:21 +00:00
shader_info.h mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00