* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#pragma once
+
+#ifndef RADV_CS_H
+#define RADV_CS_H
#include <string.h>
#include <stdint.h>
radeon_emit(cs, (reg - CIK_UCONFIG_REG_OFFSET) >> 2 | (idx << 28));
radeon_emit(cs, value);
}
+
+#endif /* RADV_CS_H */
/*
* Copyright © 2016 Bas Nieuwenhuizen
- *
+ *
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#pragma once
+
+#ifndef RADV_DESCRIPTOR_SET_H
+#define RADV_DESCRIPTOR_SET_H
#include <vulkan/vulkan.h>
unsigned char sha1[20];
};
+
+#endif /* RADV_DESCRIPTOR_SET_H */
* IN THE SOFTWARE.
*/
-#pragma once
+#ifndef RADV_DEVICE_INFO_H
+#define RADV_DEVICE_INFO_H
#include <amdgpu.h>
#include "radv_radeon_winsys.h"
+
struct radv_device_info {
uint32_t pci_id;
enum chip_class chip_class;
};
+
+#endif /* RADV_DEVICE_INFO_H */
* IN THE SOFTWARE.
*/
-#pragma once
+#ifndef RADV_META_H
+#define RADV_META_H
#include "radv_private.h"
#ifdef __cplusplus
}
#endif
+
+#endif /* RADV_META_H */
* IN THE SOFTWARE.
*/
-#pragma once
+#ifndef RADV_PRIVATE_H
+#define RADV_PRIVATE_H
#include <stdlib.h>
#include <stdio.h>
RADV_DEFINE_STRUCT_CASTS(radv_common, VkImageMemoryBarrier)
+#endif /* RADV_PRIVATE_H */
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#pragma once
+
+#ifndef RADV_RADEON_WINSYS_H
+#define RADV_RADEON_WINSYS_H
#include <stdint.h>
#include <stdbool.h>
cs->cdw += count;
}
+#endif /* RADV_RADEON_WINSYS_H */
-#pragma once
+#ifndef RADV_UTIL_H
+#define RADV_UTIL_H
#ifdef HAVE___BUILTIN_POPCOUNT
#define util_bitcount(i) __builtin_popcount(i)
util_bitcount(unsigned int n);
#endif
+#endif /* RADV_UTIL_H */
* IN THE SOFTWARE.
*/
-#pragma once
+#ifndef RADV_WSI_H
+#define RADV_WSI_H
#include "radv_private.h"
void radv_x11_finish_wsi(struct radv_physical_device *physical_device);
VkResult radv_wl_init_wsi(struct radv_physical_device *physical_device);
void radv_wl_finish_wsi(struct radv_physical_device *physical_device);
+
+#endif /* RADV_WSI_H */
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#pragma once
+
+#ifndef RADV_AMDGPU_BO_H
+#define RADV_AMDGPU_BO_H
+
#include "radv_amdgpu_winsys.h"
+
struct radv_amdgpu_winsys_bo {
amdgpu_bo_handle bo;
amdgpu_va_handle va_handle;
void radv_amdgpu_bo_init_functions(struct radv_amdgpu_winsys *ws);
+#endif /* RADV_AMDGPU_BO_H */
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#pragma once
+
+#ifndef RADV_AMDGPU_CS_H
+#define RADV_AMDGPU_CS_H
#include <string.h>
#include <stdint.h>
}
void radv_amdgpu_cs_init_functions(struct radv_amdgpu_winsys *ws);
+
+#endif /* RADV_AMDGPU_CS_H */
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#pragma once
+
+#ifndef RADV_AMDGPU_SURFACE_H
+#define RADV_AMDGPU_SURFACE_H
#include <amdgpu.h>
void radv_amdgpu_surface_init_functions(struct radv_amdgpu_winsys *ws);
ADDR_HANDLE radv_amdgpu_addr_create(struct amdgpu_gpu_info *amdinfo, int family, int rev_id, enum chip_class chip_class);
+
+#endif /* RADV_AMDGPU_SURFACE_H */
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#pragma once
+
+#ifndef RADV_AMDGPU_WINSYS_H
+#define RADV_AMDGPU_WINSYS_H
#include "radv_radeon_winsys.h"
#include "addrlib/addrinterface.h"
{
return (struct radv_amdgpu_winsys*)base;
}
+
+#endif /* RADV_AMDGPU_WINSYS_H */
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#pragma once
+
+#ifndef RADV_AMDGPU_WINSYS_PUBLIC_H
+#define RADV_AMDGPU_WINSYS_PUBLIC_H
struct radeon_winsys *radv_amdgpu_winsys_create(int fd);
+
+#endif /* RADV_AMDGPU_WINSYS_PUBLIC_H */