From b8657e44dc397625f447c83504f545ef13d9851d Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 20 Jun 2007 23:03:26 +0100 Subject: [PATCH] Remove dependency on vf.h in public headers --- src/mesa/pipe/p_state.h | 1 - src/mesa/pipe/softpipe/sp_context.h | 8 +++++--- src/mesa/pipe/softpipe/sp_draw.c | 1 + src/mesa/pipe/softpipe/sp_prim_flatshade.c | 2 ++ src/mesa/pipe/softpipe/sp_prim_twoside.c | 2 ++ src/mesa/pipe/softpipe/sp_state_derived.c | 2 ++ 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h index c4bf0d21958..b60e2668065 100644 --- a/src/mesa/pipe/p_state.h +++ b/src/mesa/pipe/p_state.h @@ -29,7 +29,6 @@ #define PIPE_STATE_H #include "mtypes.h" -#include "vf/vf.h" #define WINDING_NONE 0 #define WINDING_CW 1 diff --git a/src/mesa/pipe/softpipe/sp_context.h b/src/mesa/pipe/softpipe/sp_context.h index 81f6ae3292b..ebe39fa8bf0 100644 --- a/src/mesa/pipe/softpipe/sp_context.h +++ b/src/mesa/pipe/softpipe/sp_context.h @@ -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; diff --git a/src/mesa/pipe/softpipe/sp_draw.c b/src/mesa/pipe/softpipe/sp_draw.c index 5813e377762..3fc30dd2034 100644 --- a/src/mesa/pipe/softpipe/sp_draw.c +++ b/src/mesa/pipe/softpipe/sp_draw.c @@ -33,6 +33,7 @@ #include "imports.h" #include "tnl/t_context.h" +#include "vf/vf.h" #include "sp_context.h" #include "sp_prim.h" diff --git a/src/mesa/pipe/softpipe/sp_prim_flatshade.c b/src/mesa/pipe/softpipe/sp_prim_flatshade.c index 0e9de5faeb1..3a7d9de4667 100644 --- a/src/mesa/pipe/softpipe/sp_prim_flatshade.c +++ b/src/mesa/pipe/softpipe/sp_prim_flatshade.c @@ -29,6 +29,8 @@ */ #include "imports.h" +#include "vf/vf.h" + #include "sp_context.h" #include "sp_prim.h" diff --git a/src/mesa/pipe/softpipe/sp_prim_twoside.c b/src/mesa/pipe/softpipe/sp_prim_twoside.c index 6eee1de5888..8ac0b5c130e 100644 --- a/src/mesa/pipe/softpipe/sp_prim_twoside.c +++ b/src/mesa/pipe/softpipe/sp_prim_twoside.c @@ -28,6 +28,8 @@ /* Authors: Keith Whitwell */ #include "imports.h" +#include "vf/vf.h" + #include "sp_context.h" #include "sp_prim.h" diff --git a/src/mesa/pipe/softpipe/sp_state_derived.c b/src/mesa/pipe/softpipe/sp_state_derived.c index b53c842366c..8ab325b72d4 100644 --- a/src/mesa/pipe/softpipe/sp_state_derived.c +++ b/src/mesa/pipe/softpipe/sp_state_derived.c @@ -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" -- 2.30.2