mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
agx: use #pragma once
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
parent
af04176860
commit
a296e7ec3a
6 changed files with 7 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef AGX_INTERNAL_FORMATS_H
|
||||
#define AGX_INTERNAL_FORMATS_H
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "util/format/u_formats.h"
|
||||
|
|
@ -44,5 +43,3 @@ agx_internal_format_supports_mask(enum agx_internal_formats format)
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef __AGX_MINIFLOAT_H_
|
||||
#define __AGX_MINIFLOAT_H_
|
||||
#pragma once
|
||||
|
||||
#include <math.h>
|
||||
#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
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
* Copyright 2023 Alyssa Rosenzweig
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
#ifndef AGX_NIR_H
|
||||
#define AGX_NIR_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue