mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
anv: use correct header guards
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
parent
76ae842366
commit
08efa6a19f
7 changed files with 29 additions and 5 deletions
|
|
@ -21,6 +21,10 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* NOTE: The header can be included multiple times, from the same file.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Gen-specific function declarations. This header must *not* be included
|
||||
* directly. Instead, it is included multiple times by gen8_private.h.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef ANV_META_H
|
||||
#define ANV_META_H
|
||||
|
||||
#include "anv_private.h"
|
||||
|
||||
|
|
@ -67,3 +68,5 @@ anv_meta_get_iview_layer(const struct anv_image *dest_image,
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ANV_META_H */
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef ANV_NIR_H
|
||||
#define ANV_NIR_H
|
||||
|
||||
#include "nir/nir.h"
|
||||
#include "anv_private.h"
|
||||
|
|
@ -43,3 +44,5 @@ void anv_nir_apply_pipeline_layout(struct anv_pipeline *pipeline,
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ANV_NIR_H */
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef ANV_PRIVATE_H
|
||||
#define ANV_PRIVATE_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
@ -2009,3 +2010,5 @@ ANV_DEFINE_STRUCT_CASTS(anv_common, VkImageMemoryBarrier)
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ANV_PRIVATE_H */
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef ANV_WSI_H
|
||||
#define ANV_WSI_H
|
||||
|
||||
#include "anv_private.h"
|
||||
|
||||
|
|
@ -76,3 +77,5 @@ VkResult anv_x11_init_wsi(struct anv_physical_device *physical_device);
|
|||
void anv_x11_finish_wsi(struct anv_physical_device *physical_device);
|
||||
VkResult anv_wl_init_wsi(struct anv_physical_device *physical_device);
|
||||
void anv_wl_finish_wsi(struct anv_physical_device *physical_device);
|
||||
|
||||
#endif /* ANV_WSI_H */
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef GENX_PIPELINE_UTIL_H
|
||||
#define GENX_PIPELINE_UTIL_H
|
||||
|
||||
#include "common/gen_l3_config.h"
|
||||
#include "common/gen_sample_positions.h"
|
||||
#include "vk_format_info.h"
|
||||
|
|
@ -969,3 +972,5 @@ emit_3dstate_streamout(struct anv_pipeline *pipeline,
|
|||
so.RenderingDisable = rs_info->rasterizerDiscardEnable;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* GENX_PIPELINE_UTIL_H */
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef VK_FORMAT_INFO_H
|
||||
#define VK_FORMAT_INFO_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <vulkan/vulkan.h>
|
||||
|
|
@ -63,3 +64,5 @@ vk_format_is_depth_or_stencil(VkFormat format)
|
|||
const VkImageAspectFlags aspects = vk_format_aspects(format);
|
||||
return aspects & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT);
|
||||
}
|
||||
|
||||
#endif /* VK_FORMAT_INFO_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue