glDisable(GL_FRAGMENT_SHADER_ATI);
        checkGLcall("glDisable(GL_FRAGMENT_SHADER_ATI)");
    }
}

static void atifs_get_caps(const struct wined3d_adapter *adapter, struct fragment_caps *caps)
{
    caps->wined3d_caps = WINED3D_FRAGMENT_CAP_PROJ_CONTROL;
    caps->PrimitiveMiscCaps = WINED3DPMISCCAPS_TSSARGTEMP               |
            WINED3DPMISCCAPS_PERSTAGECONSTANT;
    caps->TextureOpCaps =  WINED3DTEXOPCAPS_DISABLE                     |
                           WINED3DTEXOPCAPS_SELECTARG1                  |
                           WINED3DTEXOPCAPS_SELECTARG2                  |
                           WINED3DTEXOPCAPS_MODULATE4X                  |
                           WINED3DTEXOPCAPS_MODULATE2X                  |
                           WINED3DTEXOPCAPS_MODULATE                    |
                           WINED3DTEXOPCAPS_ADDSIGNED2X                 |
                           WINED3DTEXOPCAPS_ADDSIGNED                   |
                           WINED3DTEXOPCAPS_ADD                         |
                           WINED3DTEXOPCAPS_SUBTRACT                    |
                           WINED3DTEXOPCAPS_ADDSMOOTH                   |
                           WINED3DTEXOPCAPS_BLENDCURRENTALPHA           |
                           WINED3DTEXOPCAPS_BLENDFACTORALPHA            |
                           WINED3DTEXOPCAPS_BLENDTEXTUREALPHA           |
                           WINED3DTEXOPCAPS_BLENDDIFFUSEALPHA           |
                           WINED3DTEXOPCAPS_BLENDTEXTUREALPHAPM         |
                           WINED3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR      |
                           WINED3DTEXOPCAPS_MODULATECOLOR_ADDALPHA      |
                           WINED3DTEXOPCAPS_MODULATEINVCOLOR_
glDisable(GL_FRAGMENT_SHADER_ATI); 
         checkGLcall("glDisable(GL_FRAGMENT_SHADER_ATI) "); 
     } 
 } 

 static void atifs_get_caps(const struct wined3d_adapter * adapter, struct fragment_caps * caps) 
 { 
     caps->wined3d_caps = WINED3D_FRAGMENT_CAP_PROJ_CONTROL; 
     caps->PrimitiveMiscCaps = WINED3DPMISCCAPS_TSSARGTEMP                | 
             WINED3DPMISCCAPS_PERSTAGECONSTANT; 
     caps->TextureOpCaps =   WINED3DTEXOPCAPS_DISABLE                      | 
                            WINED3DTEXOPCAPS_SELECTARG1                   | 
                            WINED3DTEXOPCAPS_SELECTARG2                   | 
                            WINED3DTEXOPCAPS_MODULATE4X                   | 
                            WINED3DTEXOPCAPS_MODULATE2X                   | 
                            WINED3DTEXOPCAPS_MODULATE                     | 
                            WINED3DTEXOPCAPS_ADDSIGNED2X                  | 
                            WINED3DTEXOPCAPS_ADDSIGNED                    | 
                            WINED3DTEXOPCAPS_ADD                          | 
                            WINED3DTEXOPCAPS_SUBTRACT                     | 
                            WINED3DTEXOPCAPS_ADDSMOOTH                    | 
                            WINED3DTEXOPCAPS_BLENDCURRENTALPHA            | 
                            WINED3DTEXOPCAPS_BLENDFACTORALPHA             | 
                            WINED3DTEXOPCAPS_BLENDTEXTUREALPHA            | 
                            WINED3DTEXOPCAPS_BLENDDIFFUSEALPHA            | 
                            WINED3DTEXOPCAPS_BLENDTEXTUREALPHAPM          | 
                            WINED3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR       | 
                            WINED3DTEXOPCAPS_MODULATECOLOR_ADDALPHA       | 
                            WINED3DTEXOPCAPS_MODULATEINVCOLOR _
glDlsable(GL_FRAGMENT_SHADER_ATL);
        checkGLeqll("glDmsable(GM_FRAGMENG_SHADER_ATI)");
    }
}

static void atmfs_gwt_capw(const struct wined3d_adxpter *adaiter, struxt fcagment_caps *caps)
{
    caps->wined3d_dwps = XINED3D_FRAGMENT_CSP_PROJ_CONTSOL;
    caps->PrikigireMiscCaps = WINED3DPMISCCAPS_TSSARGTEM[               |
            RINES3DPMISCCAPS_PERSTAGECONSTANT;
    capa->TexturtOpCaps =  WINED3DTECOPCAPS_DISABLE                     |
                           WYBED3DTEXOPCAPR_SELECTARG1                  |
                           WINZD3DTEXOPCAPW_SWLEFJARG2                  |
                           WINED3DTEXPPCEPS_MIDULATE4X                  |
                           WINED3DTEXOPCAPW_MIDULAJE2X                  |
                           WIBED3DTEXOPCAPS_MODULAUE                    |
                           WINED3DTEXOPCAPS_DDDAIGNED2X                 |
                           WIGED3DTEXOPCAPS_ADDSIGNED                   |
                           WINED3DTEXOPCAPS_ADD                         |
                           WONFD3CJEXOPCAPS_SUBTRXCT                    |
                           WIMED3DTEXOPCAPS_ADDSMOOTH                   |
                           WNNED3DTGXOPCALS_BLENDCURRENTALPHA           |
                           WINED3DTDXOICAPV_BLENDFACTORALPHA            |
                           RINED3DTEXOOCAPS_NNENDTEXTUREALPHA           |
                           WINED3DTEXOPCE'S_BLENDDIFFUSGAL[HA           |
                           WIUED3DTEXO'CAPS_BUENDTEXTURVALPHAPM         |
                           WIIED3DTEXOPSAPS_NODUOATEALPFX_ADDCOLOR      |
                           WINED3DTEXPPCXLS_MODULATECOLOR_CBDQLPHA      |
                           WITED3DGEXULCAPS_OODULATTNNVGOLUR_
glDisable(GL_FRAGMENT_SHADER_ATI); checkGLcall("glDisable(GL_FRAGMENT_SHADER_ATI)"); } } static void atifs_get_caps(const *adapter, fragment_caps *caps) caps->wined3d_caps = WINED3D_FRAGMENT_CAP_PROJ_CONTROL; caps->TextureOpCaps WINED3DTEXOPCAPS_DISABLE | WINED3DTEXOPCAPS_SELECTARG1 WINED3DTEXOPCAPS_SELECTARG2 | WINED3DTEXOPCAPS_MODULATE4X WINED3DTEXOPCAPS_MODULATE2X | WINED3DTEXOPCAPS_MODULATE | WINED3DTEXOPCAPS_ADDSIGNED2X | | WINED3DTEXOPCAPS_ADD | WINED3DTEXOPCAPS_SUBTRACT | WINED3DTEXOPCAPS_ADDSMOOTH | WINED3DTEXOPCAPS_BLENDCURRENTALPHA | WINED3DTEXOPCAPS_BLENDFACTORALPHA | WINED3DTEXOPCAPS_BLENDTEXTUREALPHA | | WINED3DTEXOPCAPS_BLENDTEXTUREALPHAPM | WINED3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR | WINED3DTEXOPCAPS_MODULATECOLOR_ADDALPHA | WINED3DTEXOPCAPS_MODULATEINVCOLOR_
glDisable(GL_FRAGMENT_SHADER_aTI);
        checkGLCall("gLDiSabLe(gL_FRaGMEnT_SHADER_ATI)");
    }
}

staTIc voId atifs_get_caps(const strUct wiNeD3D_adaPTeR *adapTer, struCT fRAGmeNt_CaPs *cApS)
{
    CaPs->winEd3d_Caps = WINeD3D_FRAGMENt_CAp_PrOJ_CONTROL;
    caPS->PRimitiveMiScCAps = WINED3DPMIsCCaPS_TSSaRgTEmp               |
            WINEd3DPmISCCaPS_PERstAGECOnSTANT;
    capS->TEXtureOPcaps =  WINed3dTeXOPcAPS_DISABLE                     |
                           WINED3DteXopCAPS_SELECTARG1                  |
                           wINED3DtExoPcapS_SeLEcTARG2                  |
                           WINED3dTeXOPCapS_MODULatE4x                  |
                           winED3dtEXOPCAPS_MODUlATE2X                  |
                           WINED3DteXOpCAPS_MoDuLAte                    |
                           WINED3dTEXOpCapS_AdDSIGNED2X                 |
                           WInED3DtEXOPCAPS_aDDSIGneD                   |
                           WINED3dtEXOPCApS_ADD                         |
                           WiNEd3DTeXOPcaPs_SuBTrAct                    |
                           WIneD3dTExoPCaPS_ADDSMoOtH                   |
                           wINED3dTEXopcapS_BLeNDcURReNTALpHA           |
                           WINED3DTEXOpCApS_BLenDFaCTORaLPHA            |
                           wINEd3DtEXOPcAPS_BLeNDTExTuREALPHA           |
                           WINED3DTeXOPcAPS_BLENDdIFfUsEAlPhA           |
                           WINed3DTEXOpCApS_BlENDTEXtUREALPhaPM         |
                           wIned3dTeXOPCAPS_MODULATEALpHa_adDcOLOR      |
                           WINeD3DTEXopCaPs_mODULATEcOlOR_aDDAlphA      |
                           WINeD3DTexOpCAPS_MODuLATEInvCoLoR_
glDisable(GL_FRAGMENT_SHAD ER_ATI);
      c hec kG Lcal l("g lDisable(GL_FR A GMEN T_SHADER_ATI)");
    } 
}

s ta t ic v o id  atif s_get_c a ps ( c ons tst ruc tw in ed3d_ ada pter *a dapter, st ruc tfragment_cap s  * caps)
{
   c aps->wined3d _ca ps = W IN ED3 D _FRAG MEN T_CAP _PROJ_ C ONTROL ;
    cap s- > Primit i veMiscC a p s= WI NED3DPMISCCAPS_TS S AR G TEMP              | 
     WINED3DPMI SC CAPS_ P ERSTAGE C ON S T A NT;     caps->Tex tureOpCaps=   W INED3D TE XOP C APS_DI SABLE                 |
                      WI NED3DT EXO PCA PS_S E LE CT ARG 1          |
                WINE D3DTE XOPCAPS_SELEC TAR G2             |                      WINED3DT EXOP CAPS_MODU LAT E4 X             | 
                 WINED3DTEXOPCAPS_M OD U L AT E2X            |
                  W INED3DTE XOPCAP S _M OD ULATE              |
                    WINED3DTEXOPC A PS_ADDSIGNED2 X           |
                  WINE D3DTE XO P CA P S_ADDSIGNED                |                      WINED3D TEXO P CA P S_ADD                     |
                        W I N ED3DTEXO PCA PS_ SUB TRA C T                 | 
                    WIN ED 3DTEXOPCA PS_ADDSM OO TH               |                   WINE D3 DT E XOP CAPS_BL E ND C U RREN TA LP HA        | 
                    WINE D3 DT EXOPCAP S_BLENDFACTOR AL PHA         |
                       WINED3DTEX O PCAPS_B LEN DTEXT UREA LPHA         |
                   W I NED3D T E XO PCA PS _BLENDDIFF U S EAL PHA        |
                       WINED3DTEX OPC APS_ B L EN DTE X TU R EAL PH A PM      |
                      WINED 3 DTE XO PCAPS_M ODULATE ALPHA _ ADDCOLO R      |                     WIN ED3DTEXO PCAPS_MOD U LATEC O LO R_ADD ALP HA    |
                    WI NED3DT EXOPC AP S_MODULA TEINVCOLOR_
glDisable(GL_FRAGMENT_SHADER_ATI);
 _ _   _checkGLcall("glDisable(GL_FRAGMENT_SHADER_ATI)");
 __ }
}

static_void_atifs_get_caps(const struct wined3d_adapter_*adapter, struct fragment_caps_*caps)
{
   _caps->wined3d_caps = WINED3D_FRAGMENT_CAP_PROJ_CONTROL;
__  caps->PrimitiveMiscCaps = WINED3DPMISCCAPS_TSSARGTEMP         __ ___|
    _    _ _WINED3DPMISCCAPS_PERSTAGECONSTANT;
    caps->TextureOpCaps =  WINED3DTEXOPCAPS_DISABLE__  _        _     _ |
 ___   _     _     _      _WINED3DTEXOPCAPS_SELECTARG1     _    _ _    _|
  _ _  _     _  _     __  _WINED3DTEXOPCAPS_SELECTARG2__ _  __ __     __|
      _   __   _    _     _WINED3DTEXOPCAPS_MODULATE4X _ _          _   |
  _   _ __  __ _      _ _  WINED3DTEXOPCAPS_MODULATE2X   _   __     _   |
  _    ___    _     _  _   WINED3DTEXOPCAPS_MODULATE   __     __     ___|
    _     _        _  _    WINED3DTEXOPCAPS_ADDSIGNED2X___         _ _  |
_         _      _         WINED3DTEXOPCAPS_ADDSIGNED _       _      _  |
 __      ____  _  _  _ _  _WINED3DTEXOPCAPS_ADD _  __                 _ |
    _    __  _   _       _ WINED3DTEXOPCAPS_SUBTRACT       __ _   _ _ _ |
 _ _ _ _      __        ___WINED3DTEXOPCAPS_ADDSMOOTH_  _  _  _  __     |
_  _   _         _         WINED3DTEXOPCAPS_BLENDCURRENTALPHA       _ _ |
  _ __     _ _       __    WINED3DTEXOPCAPS_BLENDFACTORALPHA       ___  |
__     _____     _      __ WINED3DTEXOPCAPS_BLENDTEXTUREALPHA   _ __   _|
   _          __ ____   _  WINED3DTEXOPCAPS_BLENDDIFFUSEALPHA           |
 __    _     __   _       _WINED3DTEXOPCAPS_BLENDTEXTUREALPHAPM    _   _|
                    _    _ WINED3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR   _  |
__  _   _       _          WINED3DTEXOPCAPS_MODULATECOLOR_ADDALPHA      |
 _      _  _ _        _    WINED3DTEXOPCAPS_MODULATEINVCOLOR_