gallium: remove dependencies on pipe_shader_state's semantic info
authorBrian <brian@i915.localnet.net>
Wed, 27 Feb 2008 23:03:40 +0000 (16:03 -0700)
committerBrian <brian@i915.localnet.net>
Wed, 27 Feb 2008 23:03:40 +0000 (16:03 -0700)
src/gallium/drivers/softpipe/sp_prim_setup.c
src/gallium/drivers/softpipe/sp_quad_fs.c

index 17284539b007f18d22d6525fb975961f9bb03c50..5c8b0bf69ccf82ce11ba46fdb11a05c35f1e6d56 100644 (file)
@@ -1163,13 +1163,13 @@ static void setup_begin( struct draw_stage *stage )
 {
    struct setup_stage *setup = setup_stage(stage);
    struct softpipe_context *sp = setup->softpipe;
-   const struct pipe_shader_state *fs = &setup->softpipe->fs->shader;
+   const struct sp_fragment_shader *fs = &setup->softpipe->fs;
 
    if (sp->dirty) {
       softpipe_update_derived(sp);
    }
 
-   setup->quad.nr_attrs = fs->num_inputs;
+   setup->quad.nr_attrs = fs->info.num_inputs;
 
    sp->quad.first->begin(sp->quad.first);
 
index 1794fb5a616f0a7abf540d332aa45bede17d5485..1fbb2e38c4ecd10316e54cae39835962e2857842 100644 (file)
@@ -148,7 +148,7 @@ static void shade_begin(struct quad_stage *qs)
    /* find output slots for depth, color */
    qss->colorOutSlot = -1;
    qss->depthOutSlot = -1;
-   for (i = 0; i < qss->stage.softpipe->fs->shader.num_outputs; i++) {
+   for (i = 0; i < qss->stage.softpipe->fs->info.num_outputs; i++) {
       switch (qss->stage.softpipe->fs->info.output_semantic_name[i]) {
       case TGSI_SEMANTIC_POSITION:
          qss->depthOutSlot = i;