Remove dependency on vf.h in public headers

This commit is contained in:
Keith Whitwell
2007-06-20 23:03:26 +01:00
parent 2fd7b30bfe
commit b8657e44dc
6 changed files with 12 additions and 4 deletions

View File

@@ -29,7 +29,6 @@
#define PIPE_STATE_H #define PIPE_STATE_H
#include "mtypes.h" #include "mtypes.h"
#include "vf/vf.h"
#define WINDING_NONE 0 #define WINDING_NONE 0
#define WINDING_CW 1 #define WINDING_CW 1

View File

@@ -64,6 +64,8 @@ enum interp_mode {
#define G_NEW_DEPTH_TEST 0x400 #define G_NEW_DEPTH_TEST 0x400
#define PIPE_ATTRIB_MAX 32
struct softpipe_context { struct softpipe_context {
struct pipe_context pipe; struct pipe_context pipe;
@@ -94,13 +96,13 @@ struct softpipe_context {
* For now we just set colors to CONST on flatshade, textures to * For now we just set colors to CONST on flatshade, textures to
* perspective always and everything else to linear. * 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: /* FS + setup derived state:
*/ */
GLuint fp_attr_to_slot[VF_ATTRIB_MAX]; GLuint fp_attr_to_slot[PIPE_ATTRIB_MAX];
GLuint vf_attr_to_slot[VF_ATTRIB_MAX]; GLuint vf_attr_to_slot[PIPE_ATTRIB_MAX];
GLuint nr_attrs; GLuint nr_attrs;
GLuint nr_frag_attrs; GLuint nr_frag_attrs;
GLuint attr_mask; GLuint attr_mask;

View File

@@ -33,6 +33,7 @@
#include "imports.h" #include "imports.h"
#include "tnl/t_context.h" #include "tnl/t_context.h"
#include "vf/vf.h"
#include "sp_context.h" #include "sp_context.h"
#include "sp_prim.h" #include "sp_prim.h"

View File

@@ -29,6 +29,8 @@
*/ */
#include "imports.h" #include "imports.h"
#include "vf/vf.h"
#include "sp_context.h" #include "sp_context.h"
#include "sp_prim.h" #include "sp_prim.h"

View File

@@ -28,6 +28,8 @@
/* Authors: Keith Whitwell <keith@tungstengraphics.com> /* Authors: Keith Whitwell <keith@tungstengraphics.com>
*/ */
#include "imports.h" #include "imports.h"
#include "vf/vf.h"
#include "sp_context.h" #include "sp_context.h"
#include "sp_prim.h" #include "sp_prim.h"

View File

@@ -30,6 +30,8 @@
#include "enums.h" #include "enums.h"
#include "program.h" #include "program.h"
#include "vf/vf.h"
#include "sp_context.h" #include "sp_context.h"
#include "sp_draw.h" #include "sp_draw.h"
#include "sp_state.h" #include "sp_state.h"