[Mesa-stable] [PATCH v2 13/25] i965: move brw_define.h ifndef guard to the top

Emil Velikov emil.l.velikov at gmail.com
Thu Mar 9 19:07:02 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/mesa/drivers/dri/i965/brw_defines.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
index 28f180b279..b286990823 100644
--- a/src/mesa/drivers/dri/i965/brw_defines.h
+++ b/src/mesa/drivers/dri/i965/brw_defines.h
@@ -29,6 +29,9 @@
   *   Keith Whitwell <keithw at vmware.com>
   */
 
+#ifndef BRW_DEFINES_H
+#define BRW_DEFINES_H
+
 #include "util/macros.h"
 
 #define INTEL_MASK(high, low) (((1u<<((high)-(low)+1))-1)<<(low))
@@ -49,9 +52,6 @@
  */
 #define REG_MASK(value) ((value) << 16)
 
-#ifndef BRW_DEFINES_H
-#define BRW_DEFINES_H
-
 /* 3D state:
  */
 #define CMD_3D_PRIM                                 0x7b00 /* 3DPRIMITIVE */
-- 
2.11.1



More information about the mesa-stable mailing list