i965: Stop including brw_vs.h from brw_vec4.h.
authorPaul Berry <stereotype441@gmail.com>
Wed, 20 Mar 2013 18:54:33 +0000 (11:54 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 23 Aug 2013 18:02:37 +0000 (11:02 -0700)
This is backwards from what we are going to want in the long term, which is:

- brw_vec4.h declares general-purpose vec4 infrastructure needed by
  both VS and GS
- brw_vs.h includes brw_vec4.h and adds VS-specific parts.
- brw_gs.h includes brw_vec4.h and adds GS-specific parts.

Note that at the moment brw_vec.h contains a fair amount of
VS-specific declarations--I plan to address that in a later patch.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp
src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp

index 429e8cc9fd7a85c037fcc6d37355a2c8ea2d0e2e..d7671a458b3fc6c9dd15a4888af4ff7ed887a10e 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "brw_vec4.h"
 #include "brw_cfg.h"
+#include "brw_vs.h"
 
 extern "C" {
 #include "main/macros.h"
index 111b1050983c67ee29e57c18a9f8df9920c61b0e..b331372d16c2db34c45e451e9d33e3a4c9d60f79 100644 (file)
 #include "program/hash_table.h"
 
 extern "C" {
-#include "brw_vs.h"
 #include "brw_context.h"
 #include "brw_eu.h"
 };
 
 #include "glsl/ir.h"
 
+struct brw_vec4_compile;
+struct brw_vs_compile;
+struct brw_vec4_prog_key;
+
 namespace brw {
 
 class dst_reg;
index 10a9c57330731c1041c337c6b03088334ea3057c..0b27383777f4aa16ff548f7c845ecb2164ca2bdb 100644 (file)
@@ -27,6 +27,7 @@ extern "C" {
 } /* extern "C" */
 
 #include "brw_vec4.h"
+#include "brw_vs.h"
 
 using namespace brw;
 
index 455d9dcb12c83267e5d3c864001b4ca5bca36984..c3070495da158431e41f20620914f14373cb0787 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include "brw_vec4.h"
+#include "brw_vs.h"
 #include "glsl/ir_uniform.h"
 extern "C" {
 #include "main/context.h"
index eedf59bc2ee7a1f5c90ebfd460f3626123209073..1787df8f25db9c0136f7342cb33d542283cd2a42 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "brw_context.h"
 #include "brw_vec4.h"
+#include "brw_vs.h"
 extern "C" {
 #include "program/prog_parameter.h"
 #include "program/prog_print.h"
index 6e8391b63cb221046c42925a3a76e19309061fb2..e14130531156a2567fc73903bbd38241957748eb 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <gtest/gtest.h>
 #include "brw_vec4.h"
+#include "brw_vs.h"
 
 using namespace brw;