asahi: 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:
Alyssa Rosenzweig 2024-02-07 23:19:46 -04:00 committed by Marge Bot
parent 951219a4fc
commit 0ee0969f79
4 changed files with 5 additions and 17 deletions

View file

@ -5,12 +5,11 @@
*
*/
#pragma once
#include "util/disk_cache.h"
#include "agx_state.h"
#ifndef AGX_DISK_CACHE_H
#define AGX_DISK_CACHE_H
void agx_disk_cache_store(struct disk_cache *cache,
const struct agx_uncompiled_shader *uncompiled,
const union asahi_shader_key *key,
@ -22,5 +21,3 @@ agx_disk_cache_retrieve(struct agx_screen *screen,
const union asahi_shader_key *key);
void agx_disk_cache_init(struct agx_screen *screen);
#endif

View file

@ -5,8 +5,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef AGX_FENCE_H
#define AGX_FENCE_H
#pragma once
#include "pipe/p_state.h"
@ -38,5 +37,3 @@ void agx_create_fence_fd(struct pipe_context *pctx,
void agx_fence_server_sync(struct pipe_context *pctx,
struct pipe_fence_handle *f);
#endif

View file

@ -2,8 +2,7 @@
* Copyright 2010 Red Hat Inc.
* SPDX-License-Identifier: MIT
*/
#ifndef AGX_PUBLIC_H
#define AGX_PUBLIC_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -18,5 +17,3 @@ struct pipe_screen *agx_screen_create(int fd, struct renderonly *ro,
#ifdef __cplusplus
}
#endif
#endif

View file

@ -4,8 +4,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef AGX_STATE_H
#define AGX_STATE_H
#pragma once
#include "asahi/compiler/agx_compile.h"
#include "asahi/layout/layout.h"
@ -1144,5 +1143,3 @@ typedef void (*meta_shader_builder_t)(struct nir_builder *b, const void *key);
void agx_init_meta_shaders(struct agx_context *ctx);
void agx_destroy_meta_shaders(struct agx_context *ctx);
#endif