summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv10/nv10_state.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-03-16 12:55:02 +1100
committerBen Skeggs <[email protected]>2008-03-16 12:55:13 +1100
commit7d2c63e90983088f1e2f49543caf0468aa91111f (patch)
treeb66f4da87a56b35c55998395cf0647eab4086e8b /src/gallium/drivers/nv10/nv10_state.c
parentc4354f84603cabb0e33ea3f586cc89bfdc27f79b (diff)
nv10: fix build after merge
Diffstat (limited to 'src/gallium/drivers/nv10/nv10_state.c')
-rw-r--r--src/gallium/drivers/nv10/nv10_state.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv10/nv10_state.c b/src/gallium/drivers/nv10/nv10_state.c
index 313230fe889..d7c445f1b39 100644
--- a/src/gallium/drivers/nv10/nv10_state.c
+++ b/src/gallium/drivers/nv10/nv10_state.c
@@ -10,15 +10,15 @@
static void nv10_vertex_layout(struct pipe_context* pipe)
{
struct nv10_context *nv10 = nv10_context(pipe);
- const struct pipe_shader_state *fs = nv10->fragprog.current->pipe;
+ struct nv10_fragment_program *fp = nv10->fragprog.current;
uint32_t src = 0;
int i;
struct vertex_info vinfo;
memset(&vinfo, 0, sizeof(vinfo));
- for (i = 0; i < fs->num_inputs; i++) {
- switch (fs->input_semantic_name[i]) {
+ for (i = 0; i < fp->info.num_inputs; i++) {
+ switch (fp->info.input_semantic_name[i]) {
case TGSI_SEMANTIC_POSITION:
draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_LINEAR, src++);
break;
@@ -476,6 +476,8 @@ nv10_fp_state_create(struct pipe_context *pipe,
fp = CALLOC(1, sizeof(struct nv10_fragment_program));
fp->pipe = cso;
+
+ tgsi_scan_shader(cso->tokens, &fp->info);
return (void *)fp;
}