diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2007-12-13 20:38:56 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2007-12-13 20:39:31 +0000 |
commit | 568fcf64c774f5f8e9f65bb86c121f5d550b1632 (patch) | |
tree | 60bac5b746779a1e85d52853a71545e2864ee30a /src/mesa/pipe/i965simple/brw_state.c | |
parent | c605a55e9f771a2f0e85d69ff60059f7ea95320f (diff) |
965: get fragment shader compiler compiling
Don't think that it will run though.
Diffstat (limited to 'src/mesa/pipe/i965simple/brw_state.c')
-rw-r--r-- | src/mesa/pipe/i965simple/brw_state.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/pipe/i965simple/brw_state.c b/src/mesa/pipe/i965simple/brw_state.c index f1eba146c4..032a4e0285 100644 --- a/src/mesa/pipe/i965simple/brw_state.c +++ b/src/mesa/pipe/i965simple/brw_state.c @@ -198,6 +198,10 @@ static void * brw_create_fs_state(struct pipe_context *pipe, /* XXX: Do I have to duplicate the tokens as well?? */ brw_fp->program = *shader; + brw_fp->id = brw_context(pipe)->program_id++; + + brw_shader_info(shader->tokens, + &brw_fp->info); return (void *)brw_fp; } @@ -228,6 +232,9 @@ static void *brw_create_vs_state(struct pipe_context *pipe, /* XXX: Do I have to duplicate the tokens as well?? */ brw_vp->program = *shader; + brw_vp->id = brw_context(pipe)->program_id++; + brw_shader_info(shader->tokens, + &brw_vp->info); tgsi_dump(shader->tokens, 0); |