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:
@@ -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? */
|
||||
|
Reference in New Issue
Block a user