i965: consistently use ifndef guards over pragma once
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 20 Mar 2017 16:04:19 +0000 (16:04 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Mar 2017 16:55:22 +0000 (16:55 +0000)
The only remaining case is the brw_oa.py generator which pipes the
generated file to stdout. That will be resolved with later commits.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Vedran Miletić <vedran@miletic.net>
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_multisample_state.h
src/mesa/drivers/dri/i965/brw_performance_query.h
src/mesa/drivers/dri/i965/intel_resolve_map.h

index 277b00ebc2e3b2b0cdd6711fd3a54c888f7c5dcb..ee4bf3bf541f945b7da61b6a5021a93f83b08679 100644 (file)
@@ -21,7 +21,8 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef BRW_BLORP_H
+#define BRW_BLORP_H
 
 #include "blorp/blorp.h"
 #include "intel_mipmap_tree.h"
@@ -85,3 +86,5 @@ void gen9_blorp_exec(struct blorp_batch *batch,
 #ifdef __cplusplus
 } /* extern "C" */
 #endif
+
+#endif /* BRW_BLORP_H */
index db59af2affb3120901937d7e917e1c4eebfa7cd9..6cf324e561c14a30a1911d671f4025d5ec86c8d6 100644 (file)
@@ -21,6 +21,9 @@
  * IN THE SOFTWARE.
  */
 
+#ifndef BRW_MULTISAMPLE_STATE_H
+#define BRW_MULTISAMPLE_STATE_H
+
 #include <stdint.h>
 
 /**
@@ -104,3 +107,5 @@ static const uint32_t
 brw_multisample_positions_16x[] = {
    0xc75a7599, 0xb3dbad36, 0x2c42816e, 0x10eff408
 };
+
+#endif /* BRW_MULTISAMPLE_STATE_H */
index c9454f98eab8a9c32048e1b33826fe44e64087b7..11938b74df365e4e83dbdba9acb87d30ad30fb3f 100644 (file)
@@ -21,7 +21,8 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef BRW_PERFORMANCE_QUERY_H
+#define BRW_PERFORMANCE_QUERY_H
 
 #include <stdint.h>
 
@@ -55,3 +56,4 @@ struct brw_perf_query_counter
    };
 };
 
+#endif /* BRW_PERFORMANCE_QUERY_H */
index 397860c4d9a060f43bd80c22a09007055f7d52c6..17d3983f5e55adbbede4707710aee4f6bbeb9906 100644 (file)
@@ -21,7 +21,8 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef INTEL_RESLVE_MAP_H
+#define INTEL_RESLVE_MAP_H
 
 #include <stdint.h>
 #include "blorp/blorp.h"
@@ -164,3 +165,4 @@ intel_resolve_map_clear(struct exec_list *resolve_map);
 } /* extern "C" */
 #endif
 
+#endif /* INTEL_RESLVE_MAP_H */