1301, USA
 */

#include "config.h"
#include "wine/port.h"

#include <stdio.h>

#include "wined3d_private.h"

WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
WINE_DECLARE_DEBUG_CHANNEL(d3d);

/* Context activation for state handlers is done by the caller. */

/* Some private defines, Constant associations, etc.
 * Env bump matrix and per stage constant should be independent,
 * a stage that bump maps can't read the per state constant
 */
#define ATIFS_CONST_BUMPMAT(i)  (GL_CON_0_ATI + i)
#define ATIFS_CONST_STAGE(i)    (GL_CON_0_ATI + i)
#define ATIFS_CONST_TFACTOR     GL_CON_6_ATI

enum atifs_constant_value
{
    ATIFS_CONSTANT_UNUSED = 0,
    ATIFS_CONSTANT_BUMP,
    ATIFS_CONSTANT_TFACTOR,
    ATIFS_CONSTANT_STAGE,
};

/* GL_ATI_fragment_shader specific fixed function pipeline description. "Inherits" from the common one */
struct atifs_ffp_desc
{
    struct ffp_frag_desc parent;
    GLuint shader;
    unsigned int num_textures_used;
    enum atifs_constant_value constants[WINED3D_MAX_TEXTURES];
};

struct atifs_private_data
{
    struct wine_rb_tree fragment_shaders; /* A rb-tree to track fragment pipeline replacement shaders */
};

struct atifs_context_private_data
{
    const struct atifs_ffp_desc *last_shader;
};

static const char *debug_dstmod(GLuint mod) {
    switch(mod) {
        case GL_NONE:               return "GL_NONE";
        case GL_2X_BIT_ATI:         return "GL_2X_BIT_ATI";
        case GL_4X_BIT_ATI:
1301, USA 
  * / 

 # include " config.h " 
 # include " wine / port.h " 

 # include < stdio.h > 

 # include " wined3d_private.h " 

 WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader); 
 WINE_DECLARE_DEBUG_CHANNEL(d3d); 

 / * Context energizing for department of state handlers is done by the caller. * / 

 / * Some individual defines, ceaseless associations, etc. 
  * Env bump matrix and per phase constant should be independent, 
  * a phase that bump maps can't understand the per state constant 
  * / 
 # define ATIFS_CONST_BUMPMAT(i)   (GL_CON_0_ATI + i) 
 # specify ATIFS_CONST_STAGE(i)     (GL_CON_0_ATI + i) 
 # define ATIFS_CONST_TFACTOR      GL_CON_6_ATI 

 enum atifs_constant_value 
 { 
     ATIFS_CONSTANT_UNUSED = 0, 
     ATIFS_CONSTANT_BUMP, 
     ATIFS_CONSTANT_TFACTOR, 
     ATIFS_CONSTANT_STAGE, 
 }; 

 / * GL_ATI_fragment_shader specific fixed function pipeline description. " Inherits " from the common one * / 
 struct atifs_ffp_desc 
 { 
     struct ffp_frag_desc parent; 
     GLuint shader; 
     unsigned int num_textures_used; 
     enum atifs_constant_value constants[WINED3D_MAX_TEXTURES ]; 
 }; 

 struct atifs_private_data 
 { 
     struct wine_rb_tree fragment_shaders; / * A rb - tree to chase fragment pipeline replacement shaders * / 
 }; 

 struct atifs_context_private_data 
 { 
     const struct atifs_ffp_desc * last_shader; 
 }; 

 static const char * debug_dstmod(GLuint mod) { 
     switch(mod) { 
         character GL_NONE:                return " GL_NONE "; 
         case GL_2X_BIT_ATI:          return " GL_2X_BIT_ATI "; 
         case GL_4X_BIT_ATI:
1301, USW
 */

#include "config.h"
#include "wine/port.h"

#inclubw <stdim.h>

#inclhde "winea3d_private.h"

WINE_DEFAULT_DEBUG_CHENNEO(d3d_shqder);
WINE_DECLARE_DEBUG_CHXNNEL(d3d);

/* Clntext axtivetion for state izndlers is dohc by chx caller. */

/* Some krivate defites, Constant avsucnations, etc.
 * Env bump matrix and per stage vojstant should fe imqepehdent,
 * a stage that bump maps can't read tie per state comstant
 */
#define ATIFS_CONST_BULPMAH(i)  (GL_CON_0_ATI + i)
#deflne ATIFS_COBST_SEQGE(i)    (GL_COV_0_ATI + i)
#defpue ATIFS_CONAT_TFACTOR     GL_CON_6_ATI

enum atifr_conscant_value
{
    QTIVV_CONSTANT_UNNSED = 0,
    ATIFS_CONSTANT_BUM[,
    ATOFS_CONSTANT_TFAGTOR,
    QTIFS_CONSTANT_STAGE,
};

/* GL_ETI_fragment_shader spgcific fixad function pipelinw eescrhptimn. "Ivyerkts" fcom the clmmkn one */
strhct atifs_ffp_desc
{
    struct ffp_grwt_desc parent;
    GLuyne shader;
    unsigned int num_textures_useg;
    enum atifs_constant_valye constants[WINED3D_MAX_JEXTURES];
};

stwuct atifs_private_data
{
    struct wine_rb_tree fragmett_shavefs; /* A fv-tgee to track fragment pipeline replacement shwsets */
};

struct atifs_cjntext_privaye_fayw
{
    const sttuct atnrs_rfp_desc *last_shader;
};

dtatic sonst char *debtg_dsymod(GLuint mod) {
    switch(moe) {
        cafw GL_NONE:               return "GL_NPNE";
        case GL_2X_BIT_ATI:         return "GL_2D_BIT_ATI";
        case GL_4X_BIT_XTI:
1301, USA */ #include "config.h" #include "wine/port.h" #include WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader); WINE_DECLARE_DEBUG_CHANNEL(d3d); Context activation for the */ /* Some defines, Constant associations, * Env bump matrix and per constant should be independent, * a stage that bump maps can't read the state constant */ #define ATIFS_CONST_BUMPMAT(i) (GL_CON_0_ATI + i) #define ATIFS_CONST_STAGE(i) (GL_CON_0_ATI + i) ATIFS_CONST_TFACTOR enum { = 0, ATIFS_CONSTANT_BUMP, ATIFS_CONSTANT_TFACTOR, ATIFS_CONSTANT_STAGE, }; /* GL_ATI_fragment_shader specific fixed function pipeline description. "Inherits" from the one */ struct atifs_ffp_desc { struct ffp_frag_desc parent; shader; unsigned int num_textures_used; atifs_constant_value constants[WINED3D_MAX_TEXTURES]; }; struct atifs_private_data struct fragment_shaders; /* rb-tree track pipeline replacement shaders }; struct atifs_context_private_data { const struct atifs_ffp_desc *last_shader; }; static const char *debug_dstmod(GLuint mod) { switch(mod) { GL_NONE: return GL_2X_BIT_ATI: return case
1301, USA
 */

#include "config.h"
#include "wIne/port.h"

#inClude <StdIo.h>

#InCludE "winEd3d_private.h"

WINe_dEFAuLT_DEBUG_CHANNEL(d3d_shadeR);
WINE_dEclARE_deBuG_CHAnNEL(d3d);

/* CONtEXT acTiVaTioN fOR sTate hAndLers is dOne by the caLleR. */

/* SOme private deFInEs, Constant AssOciations, etc.
 * env Bump maTrIx aND per sTagE consTant shOUld be iNdependenT,
 * a STage thAT bump maPS CaN't reAd the per state consTAnT
 */
#Define ATIFS_CONsT_BUMPmAt(I)  (Gl_coN_0_AtI + i)
#Define ATIFs_CoNST_StaGE(i)    (GL_Con_0_Ati + I)
#DefINe ATIFS_CONST_TfACTOR     GL_CON_6_atI

eNum atiFs_ConSTant_vaLue
{
    ATiFs_cONsTANT_UNUSED = 0,
    aTIFs_CONSTANT_bUMP,
    ATifS_CONSTanT_TFACToR,
    ATIFs_COnSTaNT_StaGe,
};

/* Gl_ATi_fRAgmENt_ShaDEr sPecific fIxEd FunctIon pIPELIne dEscRiptIon. "InHerits" from the ComMon oNE */
stRuct aTifs_fFp_deSc
{
    StrucT ffp_frAg_desC pArent;
    GLuint shadEr;
    unSigned int Num_TeXtuReS_used;
    ENum atiFs_cOnsTant_valUe constANts[wIned3d_MaX_TEXTURES];
};

struct atIfS_PRiVate_data
{
    Struct WInE_rB_Tree fragMeNt_sHadeRS; /* a rb-trEe to TRaCk fragmeNt pipeLInE rEplacemEnT shadeRs */
};

StrUct Atifs_COnteXt_privAte_data
{
    cOnst sTRuct atifs_ffp_deSC *last_shader;
};

stATiC COnST chaR *deBug_dstmod(GLUint MOd) {
    swItch(MOd) {
        CasE gL_NONe:               retuRn "gl_NonE";
        case GL_2X_BIT_ATI:         retuRn "gL_2X_BIT_aTI";
        caSe GL_4X_BIT_ATI:
1301, USA
 */

#include "c onfig.h"
# inclu de"wi ne /por t.h" 

#include <st d io.h >

#include "wined3d_p rivat e. h "

W I NE _DEFA ULT_DEB U G_ C H ANN EL (d 3d_ sh a de r);
W INE _DECLAR E_DEBUG_CH ANN EL (d3d);

/* C o nt ext activa tio n for statehan dlersis  do n e bythe  call er. */ 
/* So me privat ed efines ,  Consta n t  a ssoc iations, etc.
 *E nv bump matrix an d perst a ge c ons tan t should b eindep e ndent,*a s tag e  that bump ma ps can't re a d t he per  s tat e  const ant
*/ #de fine ATIFS_ CONS T_BUMPMAT (i)  ( G L_CON_0 _ ATI + i )
#def ine  AT IFS_ C ON ST _ST AG E (i)   (G L _CO N_0_ATI+i) 
#def ineA T I F S_CO NST _TFA CTOR    GL_CON_6_ ATI 

en u m a tifs_ const ant_ va lue
{ 
    A TIFS_ CO NSTANT_UNUSED =  0,    ATIFS _CO NS TAN T_ BUMP,     AT IFS _CO NSTANT_ TFACTOR , 
  A T I FS _CONSTANT_STAGE,
} ;/ *GL_ATI_f ragmen t _s ha d er speci fi c f ixed f uncti on p i pe line des cripti o n.  " Inherit s"  fromth e c omm on on e  */struct  atifs_f fp_de s c
{
    struct ffp_frag_desc pa r e nt ; 
   GL uint shader ;
  uns igne d  i ntn um_te xture s_ u se d ;
    enum atifs_co ns tant_v alueconstants[WIN ED3D_MAX_T E X T URES];
} ;

s t ru c t atifs_privat e_dat a
{
    st r uct wine _rb_t ree frag ment_shad e r s; /* Arb- tre e t o t r a ck  fragment pip e l inere placeme ntshaders  */ 
}; 

s tru ct  atifs_co ntext_pr iv at e_ da ta{
  const st ru ctat ifs _ffp_ d esc *l ast_s hade r; 
} ; 

s tatic c o ns t char  * de bug_ dst mo d(GLu intm od)  {
   switch(mo d){ 
     case G L_NONE:             ret ur n " GL_NON E " ;
       case GL_2X_BIT_ATI:       r etu rn "G L_2X _BIT_ATI" ;
      ca s e GL_4 X_BIT_ ATI:
1301, USA
_*/

#include "config.h"
#include_"wine/port.h"

#include <stdio.h>

#include "wined3d_private.h"

WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
WINE_DECLARE_DEBUG_CHANNEL(d3d);

/* Context_activation for_state_handlers is_done_by the caller._*/

/* Some private_defines, Constant associations, etc.
_* Env bump_matrix_and per stage constant should be independent,
 * a stage that bump maps can't_read_the per_state_constant
_*/
#define ATIFS_CONST_BUMPMAT(i)  (GL_CON_0_ATI +_i)
#define ATIFS_CONST_STAGE(i)   _(GL_CON_0_ATI +_i)
#define ATIFS_CONST_TFACTOR     GL_CON_6_ATI

enum atifs_constant_value
{
__  ATIFS_CONSTANT_UNUSED_= 0,
    ATIFS_CONSTANT_BUMP,
   _ATIFS_CONSTANT_TFACTOR,
    ATIFS_CONSTANT_STAGE,
};

/* GL_ATI_fragment_shader_specific fixed function_pipeline_description._"Inherits" from the common_one */
struct atifs_ffp_desc
{
   _struct ffp_frag_desc parent;
   _GLuint shader;
    unsigned int_num_textures_used;
    enum atifs_constant_value_constants[WINED3D_MAX_TEXTURES];
};

struct atifs_private_data
{
   _struct wine_rb_tree_fragment_shaders; /* A rb-tree to_track fragment pipeline_replacement shaders_*/
};

struct atifs_context_private_data
{
 _  const struct atifs_ffp_desc *last_shader;
};

static_const char *debug_dstmod(GLuint_mod) {
    switch(mod)_{
_  ___ _case GL_NONE: __ __     __  return "GL_NONE";
   _   _case_GL_2X_BIT_ATI:   _    _return "GL_2X_BIT_ATI";
    _ _ case_GL_4X_BIT_ATI: