core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

program_parse_extra.c File Reference

#include <string.h>
#include "main/mtypes.h"
#include "prog_instruction.h"
#include "program_parser.h"

Functions

int _mesa_parse_instruction_suffix (const struct asm_parser_state *state, const char *suffix, struct prog_instruction *inst)
 Extra assembly-level parser routines.
int _mesa_parse_cc (const char *s)
 Parses a condition code name.
int _mesa_ARBvp_parse_option (struct asm_parser_state *state, const char *option)
 Parses and processes an option string to an ARB vertex program.
int _mesa_ARBfp_parse_option (struct asm_parser_state *state, const char *option)
 Parses and processes an option string to an ARB fragment program.


Function Documentation

int _mesa_ARBfp_parse_option ( struct asm_parser_state state,
const char *  option 
)

Parses and processes an option string to an ARB fragment program.

Returns:
Non-zero on success, zero on failure.

int _mesa_ARBvp_parse_option ( struct asm_parser_state state,
const char *  option 
)

Parses and processes an option string to an ARB vertex program.

Returns:
Non-zero on success, zero on failure.

int _mesa_parse_cc ( const char *  s  ) 

Parses a condition code name.

The condition code names (e.g., LT, GT, NE) were added to assembly shaders with the GL_NV_fragment_program_option extension. This function converts a string representation into one of the COND_ macros.

Returns:
One of the COND_ macros defined in prog_instruction.h on success or zero on failure.

int _mesa_parse_instruction_suffix ( const struct asm_parser_state state,
const char *  suffix,
struct prog_instruction inst 
)

Extra assembly-level parser routines.

Parses and processes instruction suffixes.

Author:
Ian Romanick <ian.d.romanick@intel.com>


Generated on Sun Sep 27 06:48:02 2009 for Mesa Vertex and Fragment Program code by  doxygen 1.5.4