~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/i965/brw_vs.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
   c.vp = vp;
55
55
 
56
56
   c.prog_data.outputs_written = vp->program.Base.OutputsWritten;
57
 
   c.prog_data.inputs_read = vp->program.Base.InputsRead;
 
57
   c.prog_data.inputs_read = brw_translate_inputs(brw->intel.ctx.VertexProgram._Enabled,
 
58
                                                  vp->program.Base.InputsRead);
58
59
 
59
60
   if (c.key.copy_edgeflag) {
60
61
      c.prog_data.outputs_written |= 1<<VERT_RESULT_EDGE;
104
105
   key.copy_edgeflag = (brw->attribs.Polygon->FrontMode != GL_FILL ||
105
106
                        brw->attribs.Polygon->BackMode != GL_FILL);
106
107
 
 
108
   /* BRW_NEW_METAOPS
 
109
    */
 
110
   if (brw->metaops.active)
 
111
      key.know_w_is_one = 1;
 
112
 
107
113
   /* Make an early check for the key.
108
114
    */
109
115
   if (brw_search_cache(&brw->cache[BRW_VS_PROG], 
121
127
const struct brw_tracked_state brw_vs_prog = {
122
128
   .dirty = {
123
129
      .mesa  = _NEW_TRANSFORM | _NEW_POLYGON,
124
 
      .brw   = BRW_NEW_VERTEX_PROGRAM,
 
130
      .brw   = BRW_NEW_VERTEX_PROGRAM | BRW_NEW_METAOPS,
125
131
      .cache = 0
126
132
   },
127
133
   .update = brw_upload_vs_prog