Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DAVID AIRLIE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "main/glheader.h"
#include "main/context.h"
#include "main/hash.h"
#include "main/imports.h"
#include "main/macros.h"
#include "main/enums.h"
#include "main/mtypes.h"
#include "atifragshader.h"
Defines | |
#define | MESA_DEBUG_ATI_FS 0 |
Functions | |
struct ati_fragment_shader * | _mesa_new_ati_fragment_shader (GLcontext *ctx, GLuint id) |
Allocate and initialize a new ATI fragment shader object. | |
void | _mesa_delete_ati_fragment_shader (GLcontext *ctx, struct ati_fragment_shader *s) |
Delete the given ati fragment shader. | |
static void | new_arith_inst (struct ati_fragment_shader *prog) |
static void | new_tex_inst (struct ati_fragment_shader *prog) |
static void | match_pair_inst (struct ati_fragment_shader *curProg, GLuint optype) |
static int | check_arith_arg (struct ati_fragment_shader *curProg, GLuint optype, GLuint arg, GLuint argRep) |
GLuint GLAPIENTRY | _mesa_GenFragmentShadersATI (GLuint range) |
void GLAPIENTRY | _mesa_BindFragmentShaderATI (GLuint id) |
void GLAPIENTRY | _mesa_DeleteFragmentShaderATI (GLuint id) |
void GLAPIENTRY | _mesa_BeginFragmentShaderATI (void) |
void GLAPIENTRY | _mesa_EndFragmentShaderATI (void) |
void GLAPIENTRY | _mesa_PassTexCoordATI (GLuint dst, GLuint coord, GLenum swizzle) |
void GLAPIENTRY | _mesa_SampleMapATI (GLuint dst, GLuint interp, GLenum swizzle) |
static void | _mesa_FragmentOpXATI (GLint optype, GLuint arg_count, GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod) |
void GLAPIENTRY | _mesa_ColorFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod) |
void GLAPIENTRY | _mesa_ColorFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod) |
void GLAPIENTRY | _mesa_ColorFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod) |
void GLAPIENTRY | _mesa_AlphaFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod) |
void GLAPIENTRY | _mesa_AlphaFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod) |
void GLAPIENTRY | _mesa_AlphaFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod) |
void GLAPIENTRY | _mesa_SetFragmentShaderConstantATI (GLuint dst, const GLfloat *value) |
Variables | |
static struct ati_fragment_shader | DummyShader |
#define MESA_DEBUG_ATI_FS 0 |
void GLAPIENTRY _mesa_AlphaFragmentOp1ATI | ( | GLenum | op, | |
GLuint | dst, | |||
GLuint | dstMod, | |||
GLuint | arg1, | |||
GLuint | arg1Rep, | |||
GLuint | arg1Mod | |||
) |
void GLAPIENTRY _mesa_AlphaFragmentOp2ATI | ( | GLenum | op, | |
GLuint | dst, | |||
GLuint | dstMod, | |||
GLuint | arg1, | |||
GLuint | arg1Rep, | |||
GLuint | arg1Mod, | |||
GLuint | arg2, | |||
GLuint | arg2Rep, | |||
GLuint | arg2Mod | |||
) |
void GLAPIENTRY _mesa_AlphaFragmentOp3ATI | ( | GLenum | op, | |
GLuint | dst, | |||
GLuint | dstMod, | |||
GLuint | arg1, | |||
GLuint | arg1Rep, | |||
GLuint | arg1Mod, | |||
GLuint | arg2, | |||
GLuint | arg2Rep, | |||
GLuint | arg2Mod, | |||
GLuint | arg3, | |||
GLuint | arg3Rep, | |||
GLuint | arg3Mod | |||
) |
void GLAPIENTRY _mesa_BeginFragmentShaderATI | ( | void | ) |
void GLAPIENTRY _mesa_BindFragmentShaderATI | ( | GLuint | id | ) |
void GLAPIENTRY _mesa_ColorFragmentOp1ATI | ( | GLenum | op, | |
GLuint | dst, | |||
GLuint | dstMask, | |||
GLuint | dstMod, | |||
GLuint | arg1, | |||
GLuint | arg1Rep, | |||
GLuint | arg1Mod | |||
) |
void GLAPIENTRY _mesa_ColorFragmentOp2ATI | ( | GLenum | op, | |
GLuint | dst, | |||
GLuint | dstMask, | |||
GLuint | dstMod, | |||
GLuint | arg1, | |||
GLuint | arg1Rep, | |||
GLuint | arg1Mod, | |||
GLuint | arg2, | |||
GLuint | arg2Rep, | |||
GLuint | arg2Mod | |||
) |
void GLAPIENTRY _mesa_ColorFragmentOp3ATI | ( | GLenum | op, | |
GLuint | dst, | |||
GLuint | dstMask, | |||
GLuint | dstMod, | |||
GLuint | arg1, | |||
GLuint | arg1Rep, | |||
GLuint | arg1Mod, | |||
GLuint | arg2, | |||
GLuint | arg2Rep, | |||
GLuint | arg2Mod, | |||
GLuint | arg3, | |||
GLuint | arg3Rep, | |||
GLuint | arg3Mod | |||
) |
void _mesa_delete_ati_fragment_shader | ( | GLcontext * | ctx, | |
struct ati_fragment_shader * | s | |||
) |
Delete the given ati fragment shader.
void GLAPIENTRY _mesa_DeleteFragmentShaderATI | ( | GLuint | id | ) |
void GLAPIENTRY _mesa_EndFragmentShaderATI | ( | void | ) |
static void _mesa_FragmentOpXATI | ( | GLint | optype, | |
GLuint | arg_count, | |||
GLenum | op, | |||
GLuint | dst, | |||
GLuint | dstMask, | |||
GLuint | dstMod, | |||
GLuint | arg1, | |||
GLuint | arg1Rep, | |||
GLuint | arg1Mod, | |||
GLuint | arg2, | |||
GLuint | arg2Rep, | |||
GLuint | arg2Mod, | |||
GLuint | arg3, | |||
GLuint | arg3Rep, | |||
GLuint | arg3Mod | |||
) | [static] |
GLuint GLAPIENTRY _mesa_GenFragmentShadersATI | ( | GLuint | range | ) |
struct ati_fragment_shader* _mesa_new_ati_fragment_shader | ( | GLcontext * | ctx, | |
GLuint | id | |||
) | [read] |
Allocate and initialize a new ATI fragment shader object.
void GLAPIENTRY _mesa_PassTexCoordATI | ( | GLuint | dst, | |
GLuint | coord, | |||
GLenum | swizzle | |||
) |
void GLAPIENTRY _mesa_SampleMapATI | ( | GLuint | dst, | |
GLuint | interp, | |||
GLenum | swizzle | |||
) |
void GLAPIENTRY _mesa_SetFragmentShaderConstantATI | ( | GLuint | dst, | |
const GLfloat * | value | |||
) |
static int check_arith_arg | ( | struct ati_fragment_shader * | curProg, | |
GLuint | optype, | |||
GLuint | arg, | |||
GLuint | argRep | |||
) | [static] |
static void match_pair_inst | ( | struct ati_fragment_shader * | curProg, | |
GLuint | optype | |||
) | [static] |
static void new_arith_inst | ( | struct ati_fragment_shader * | prog | ) | [static] |
static void new_tex_inst | ( | struct ati_fragment_shader * | prog | ) | [static] |
struct ati_fragment_shader DummyShader [static] |