diff --git a/src/asahi/compiler/agx_compile.h b/src/asahi/compiler/agx_compile.h index 0e09bd77a51..98a7a444f71 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -3,8 +3,7 @@ * SPDX-License-Identifier: MIT */ -#ifndef __AGX_PUBLIC_H_ -#define __AGX_PUBLIC_H_ +#pragma once #include "compiler/nir/nir.h" #include "util/u_dynarray.h" @@ -309,5 +308,3 @@ static const nir_shader_compiler_options agx_nir_options = { .lower_doubles_options = (nir_lower_doubles_options)(~0), .lower_fquantize2f16 = true, }; - -#endif diff --git a/src/asahi/compiler/agx_compiler.h b/src/asahi/compiler/agx_compiler.h index 333c5720fed..06635fd9184 100644 --- a/src/asahi/compiler/agx_compiler.h +++ b/src/asahi/compiler/agx_compiler.h @@ -4,8 +4,7 @@ * SPDX-License-Identifier: MIT */ -#ifndef __AGX_COMPILER_H -#define __AGX_COMPILER_H +#pragma once #include "compiler/nir/nir.h" #include "util/half_float.h" @@ -939,5 +938,3 @@ extern int agx_compiler_debug; #ifdef __cplusplus } /* extern C */ #endif - -#endif diff --git a/src/asahi/compiler/agx_debug.h b/src/asahi/compiler/agx_debug.h index eecd445db82..38a95a4810f 100644 --- a/src/asahi/compiler/agx_debug.h +++ b/src/asahi/compiler/agx_debug.h @@ -4,8 +4,7 @@ * SPDX-License-Identifier: MIT */ -#ifndef __AGX_DEBUG_H -#define __AGX_DEBUG_H +#pragma once #include "util/macros.h" @@ -35,5 +34,3 @@ uint64_t agx_get_compiler_debug(void); #ifdef __cplusplus } /* extern C */ #endif - -#endif diff --git a/src/asahi/compiler/agx_internal_formats.h b/src/asahi/compiler/agx_internal_formats.h index 9232243d22a..b4692856c2b 100644 --- a/src/asahi/compiler/agx_internal_formats.h +++ b/src/asahi/compiler/agx_internal_formats.h @@ -3,8 +3,7 @@ * SPDX-License-Identifier: MIT */ -#ifndef AGX_INTERNAL_FORMATS_H -#define AGX_INTERNAL_FORMATS_H +#pragma once #include #include "util/format/u_formats.h" @@ -44,5 +43,3 @@ agx_internal_format_supports_mask(enum agx_internal_formats format) return true; } } - -#endif diff --git a/src/asahi/compiler/agx_minifloat.h b/src/asahi/compiler/agx_minifloat.h index 0b58b562667..d0aea2e70ec 100644 --- a/src/asahi/compiler/agx_minifloat.h +++ b/src/asahi/compiler/agx_minifloat.h @@ -3,8 +3,7 @@ * SPDX-License-Identifier: MIT */ -#ifndef __AGX_MINIFLOAT_H_ -#define __AGX_MINIFLOAT_H_ +#pragma once #include #include "util/macros.h" @@ -61,5 +60,3 @@ agx_minifloat_exact(float f) float f_ = agx_minifloat_decode(agx_minifloat_encode(f)); return memcmp(&f, &f_, sizeof(float)) == 0; } - -#endif diff --git a/src/asahi/compiler/agx_nir.h b/src/asahi/compiler/agx_nir.h index af6f6269f6c..bc3f3dbc4e3 100644 --- a/src/asahi/compiler/agx_nir.h +++ b/src/asahi/compiler/agx_nir.h @@ -2,8 +2,8 @@ * Copyright 2023 Alyssa Rosenzweig * SPDX-License-Identifier: MIT */ -#ifndef AGX_NIR_H -#define AGX_NIR_H + +#pragma once #include @@ -18,5 +18,3 @@ bool agx_nir_lower_layer(struct nir_shader *s); bool agx_nir_lower_clip_distance(struct nir_shader *s); bool agx_nir_lower_cull_distance_vs(struct nir_shader *s); bool agx_nir_lower_subgroups(struct nir_shader *s); - -#endif