swrast: move two global defines to the only place where they are used
authorMiklós Máté <mtmkls@gmail.com>
Tue, 15 Dec 2015 23:05:42 +0000 (00:05 +0100)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 17 Dec 2015 20:09:58 +0000 (12:09 -0800)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/mtypes.h
src/mesa/swrast/s_atifragshader.c

index 48309bf65ecd2045f161b8bf88adec30fd04560a..707ebb9872a41b7623d8da552bd1ff126426ca72 100644 (file)
@@ -2155,8 +2155,6 @@ struct gl_compute_program_state
 /**
  * ATI_fragment_shader runtime state
  */
-#define ATI_FS_INPUT_PRIMARY 0
-#define ATI_FS_INPUT_SECONDARY 1
 
 struct atifs_instruction;
 struct atifs_setupinst;
index 2974deed41b059bd276de37afc93010b616a36c9..414a4144e25fc9ce5e4321663d58e569f7dbe47e 100644 (file)
@@ -26,6 +26,8 @@
 #include "swrast/s_atifragshader.h"
 #include "swrast/s_context.h"
 
+#define ATI_FS_INPUT_PRIMARY 0
+#define ATI_FS_INPUT_SECONDARY 1
 
 /**
  * State for executing ATI fragment shader.