nvk: fix header guards to be less generic.
authorDave Airlie <airlied@redhat.com>
Fri, 27 May 2022 23:15:48 +0000 (09:15 +1000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:53 +0000 (21:31 +0000)
You could imagine want to use these defines for something
that isn't header guards, so just make the headers guards
more explicit.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_buffer.h
src/nouveau/vulkan/nvk_device.h
src/nouveau/vulkan/nvk_device_memory.h
src/nouveau/vulkan/nvk_image.h
src/nouveau/vulkan/nvk_image_view.h
src/nouveau/vulkan/nvk_instance.h
src/nouveau/vulkan/nvk_physical_device.h
src/nouveau/vulkan/nvk_private.h
src/nouveau/vulkan/nvk_sampler.h

index 6af3ec9..6914bd0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_BUFFER
-#define NVK_BUFFER 1
+#ifndef NVK_BUFFER_H
+#define NVK_BUFFER_H 1
 
 #include "nvk_private.h"
 
index 4991f71..5f1d47f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_DEVICE
-#define NVK_DEVICE 1
+#ifndef NVK_DEVICE_H
+#define NVK_DEVICE_H 1
 
 #include "nvk_private.h"
 
index 14749c6..29cfb0c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_MEMORY
-#define NVK_MEMORY 1
+#ifndef NVK_MEMORY_H
+#define NVK_MEMORY_H 1
 
 #include "nvk_private.h"
 
index 8139b2c..b015e2a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_IMAGE
-#define NVK_IMAGE 1
+#ifndef NVK_IMAGE_H
+#define NVK_IMAGE_H 1
 
 #include "nvk_private.h"
 
index 0b90812..796adae 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_IMAGE_VIEW
-#define NVK_IMAGE_VIEW 1
+#ifndef NVK_IMAGE_VIEW_H
+#define NVK_IMAGE_VIEW_H 1
 
 #include "nvk_private.h"
 
index 729f92f..5a11b80 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_INSTANCE
-#define NVK_INSTANCE 1
+#ifndef NVK_INSTANCE_H
+#define NVK_INSTANCE_H 1
 
 #include "nvk_private.h"
 
index aa4535f..fccea04 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_PHYSICAL_DEVICE
-#define NVK_PHYSICAL_DEVICE 1
+#ifndef NVK_PHYSICAL_DEVICE_H
+#define NVK_PHYSICAL_DEVICE_H 1
 
 #include "nvk_private.h"
 
index edb8acb..48602b1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_PRIVATE
-#define NVK_PRIVATE 1
+#ifndef NVK_PRIVATE_H
+#define NVK_PRIVATE_H 1
 
 #include "nvk_entrypoints.h"
 
index 3e990e5..5b14f4d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef NVK_SAMPLER
-#define NVK_SAMPLER 1
+#ifndef NVK_SAMPLER_H
+#define NVK_SAMPLER_H 1
 
 #include "nvk_private.h"