#include <stdio.h>
#include <string.h>
#include "shader_common.h"
#include "nv30_shader.h"
Include dependency graph for nv30_fragprog.c:
Defines | |
#define | NV30FP_TX_VOP_COUNT (sizeof(NV30FP_TX_VOP) / sizeof(struct _op_xlat)) |
#define | NV30FP_TX_SOP_COUNT (sizeof(NV30FP_TX_SOP) / sizeof(struct _op_xlat)) |
Functions | |
static struct _op_xlat * | NV30FPGetOPTXRec (ShaderFunc *shader) |
static int | NV30FPHasMergedInst (ShaderFunc *shader) |
static int | NV30FPIsLastInst (ShaderFunc *shader) |
static int | NV30FPGetOffsetNext (ShaderFunc *shader) |
static ShaderOpcode | NV30FPGetOpcode (ShaderFunc *shader, int merged) |
static unsigned int | NV30FPGetOpcodeHW (ShaderFunc *shader, int slot) |
static ShaderRegFile | NV30FPGetDestFile (ShaderFunc *shader, int merged) |
static unsigned int | NV30FPGetDestID (ShaderFunc *shader, int merged) |
static unsigned int | NV30FPGetDestMask (ShaderFunc *shader, int merged) |
static unsigned int | NV30FPGetSourceHW (ShaderFunc *shader, int merged, int pos) |
static ShaderRegFile | NV30FPGetSourceFile (ShaderFunc *shader, int merged, int pos) |
static int | NV30FPGetSourceID (ShaderFunc *shader, int merged, int pos) |
static int | NV30FPGetSourceNegate (ShaderFunc *shader, int merged, int pos) |
static int | NV30FPGetSourceAbs (ShaderFunc *shader, int merged, int pos) |
static ShaderRegSwz | NV30FPTXSwizzle (int hwswz) |
static ShaderRegSwz | NV30FPGetSourceSwizzle (ShaderFunc *shader, int merged, int pos) |
static int | NV30FPGetSourceIndexed (ShaderFunc *shader, int merged, int pos) |
static void | NV30FPGetSourceConstVal (ShaderFunc *shader, int merged, int pos, float *val) |
static int | NV30FPGetSourceScale (ShaderFunc *shader, int merged, int pos) |
static int | NV30FPGetAddressRegID (ShaderFunc *shader) |
static ShaderSwzComp | NV30FPGetAddressRegSwizzle (ShaderFunc *shader) |
static int | NV30FPSupportsConditional (ShaderFunc *shader) |
static int | NV30FPGetConditionUpdate (ShaderFunc *shader) |
static int | NV30FPGetConditionTest (ShaderFunc *shader) |
static ShaderCond | NV30FPGetCondition (ShaderFunc *shader) |
static ShaderRegSwz | NV30FPGetCondRegSwizzle (ShaderFunc *shader) |
static int | NV30FPGetCondRegID (ShaderFunc *shader) |
static int | NV30FPGetBranch (ShaderFunc *shader) |
static int | NV30FPGetBranchElse (ShaderFunc *shader) |
static int | NV30FPGetBranchEnd (ShaderFunc *shader) |
static int | NV30FPGetLoopCount (ShaderFunc *shader) |
static int | NV30FPGetLoopInitial (ShaderFunc *shader) |
static int | NV30FPGetLoopIncrement (ShaderFunc *shader) |
static ShaderPrecision | NV30FPGetPrecision (ShaderFunc *shader) |
static int | NV30FPGetSaturate (ShaderFunc *shader) |
void | NV30FPInitShaderFuncs (ShaderFunc *shader) |
Variables | |
static struct _op_xlat | NV30FP_ARITH_OP [] |
static struct _op_xlat | NV30FP_BRANCH_OP [] |
ShaderSwzComp | NV30FP_TX_SWIZZLE [4] = { SSC_X, SSC_Y, SSC_Z, SSC_W } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { { NV30_FP_OP_BRA_OPCODE_BRK , SOP_BRK , {-1, -1, -1 } }, { NV30_FP_OP_BRA_OPCODE_CAL , SOP_CAL , {-1, -1, -1 } }, { NV30_FP_OP_BRA_OPCODE_IF , SOP_IF , {-1, -1, -1 } }, { NV30_FP_OP_BRA_OPCODE_LOOP, SOP_LOOP, {-1, -1, -1 } }, { NV30_FP_OP_BRA_OPCODE_REP , SOP_REP , {-1, -1, -1 } }, { NV30_FP_OP_BRA_OPCODE_RET , SOP_RET , {-1, -1, -1 } }, { -1, -1, {}}, } |
|
|