Remove dependency on vf.h in public headers
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Jun 2007 22:03:26 +0000 (23:03 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Jun 2007 22:17:12 +0000 (23:17 +0100)
src/mesa/pipe/p_state.h
src/mesa/pipe/softpipe/sp_context.h
src/mesa/pipe/softpipe/sp_draw.c
src/mesa/pipe/softpipe/sp_prim_flatshade.c
src/mesa/pipe/softpipe/sp_prim_twoside.c
src/mesa/pipe/softpipe/sp_state_derived.c

index c4bf0d2..b60e266 100644 (file)
@@ -29,7 +29,6 @@
 #define PIPE_STATE_H
 
 #include "mtypes.h"
-#include "vf/vf.h"
 
 #define WINDING_NONE 0
 #define WINDING_CW   1
index 81f6ae3..ebe39fa 100644 (file)
@@ -64,6 +64,8 @@ enum interp_mode {
 #define G_NEW_DEPTH_TEST  0x400
 
 
+#define PIPE_ATTRIB_MAX 32
+
 struct softpipe_context {     
    struct pipe_context pipe;
 
@@ -94,13 +96,13 @@ struct softpipe_context {
     * For now we just set colors to CONST on flatshade, textures to
     * perspective always and everything else to linear.
     */
-   enum interp_mode interp[VF_ATTRIB_MAX];
+   enum interp_mode interp[PIPE_ATTRIB_MAX];
 
 
    /* FS + setup derived state:
     */
-   GLuint fp_attr_to_slot[VF_ATTRIB_MAX];
-   GLuint vf_attr_to_slot[VF_ATTRIB_MAX];
+   GLuint fp_attr_to_slot[PIPE_ATTRIB_MAX];
+   GLuint vf_attr_to_slot[PIPE_ATTRIB_MAX];
    GLuint nr_attrs;
    GLuint nr_frag_attrs;
    GLuint attr_mask;
index 5813e37..3fc30dd 100644 (file)
@@ -33,6 +33,7 @@
 #include "imports.h"
 
 #include "tnl/t_context.h"
+#include "vf/vf.h"
 
 #include "sp_context.h"
 #include "sp_prim.h"
index 0e9de5f..3a7d9de 100644 (file)
@@ -29,6 +29,8 @@
  */
 #include "imports.h"
 
+#include "vf/vf.h"
+
 #include "sp_context.h"
 #include "sp_prim.h"
 
index 6eee1de..8ac0b5c 100644 (file)
@@ -28,6 +28,8 @@
 /* Authors:  Keith Whitwell <keith@tungstengraphics.com>
  */
 #include "imports.h"
+#include "vf/vf.h"
+
 #include "sp_context.h"
 #include "sp_prim.h"
 
index b53c842..8ab325b 100644 (file)
@@ -30,6 +30,8 @@
 #include "enums.h"
 #include "program.h"
 
+#include "vf/vf.h"
+
 #include "sp_context.h"
 #include "sp_draw.h"
 #include "sp_state.h"