i965/gs: Make MAX_GS_INPUT_VERTICES a #define in brw_context.h.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Mar 2015 12:26:40 +0000 (05:26 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Oct 2015 18:40:19 +0000 (11:40 -0700)
For scalar VS, I'll need this in brw_fs.cpp as well.  It seems silly to
redeclare it in three places.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp

index 9ad6b4d90cfefad5342d68d80957ad03b3fa0b0e..e59478a448a478f8502c6b18309b6b6cc6e0f54b 100644 (file)
@@ -955,6 +955,8 @@ struct intel_batchbuffer {
    } saved;
 };
 
+#define MAX_GS_INPUT_VERTICES 6
+
 #define BRW_MAX_XFB_STREAMS 4
 
 struct brw_transform_feedback_object {
index 4ce471e066952a92a1309393cd5254eb479a7b51..775f64d96bcfb0b113bac832ad503403cfbdb279 100644 (file)
@@ -30,8 +30,6 @@
 #include "brw_vec4_gs_visitor.h"
 #include "gen6_gs_visitor.h"
 
-const unsigned MAX_GS_INPUT_VERTICES = 6;
-
 namespace brw {
 
 vec4_gs_visitor::vec4_gs_visitor(const struct brw_compiler *compiler,
index 59a765591033bf91f4bb85f93ebd17f401c436b7..671a535a5bd30267ed0e87ec9c39be29749dbfdb 100644 (file)
@@ -31,8 +31,6 @@
 
 #include "gen6_gs_visitor.h"
 
-const unsigned MAX_GS_INPUT_VERTICES = 6;
-
 namespace brw {
 
 void