Basic fragment programs run now.

Handling of constants might change.  For now, the st_fragment_program struct
contains a pipe_constant_buffer (not a pointer).
This commit is contained in:
Brian
2007-07-24 12:27:38 -06:00
parent ef3849ffa0
commit 43d7c1fe9d
4 changed files with 53 additions and 15 deletions

View File

@@ -122,18 +122,18 @@ struct pipe_clip_state {
};
struct pipe_fs_state {
GLuint inputs_read; /* FRAG_ATTRIB_* */
const struct tgsi_token *tokens;
};
struct pipe_constant_buffer {
GLfloat constant[PIPE_MAX_CONSTANT][4];
GLuint nr_constants;
};
struct pipe_fs_state {
GLuint inputs_read; /* FRAG_ATTRIB_* */
const struct tgsi_token *tokens;
struct pipe_constant_buffer *constants; /* XXX temporary? */
};
struct pipe_depth_state
{
GLuint enabled:1; /**< depth test enabled? */