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

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/i965/brw_vs_state.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:
53
53
   /* BRW_NEW_URB_FENCE  */
54
54
   vs.thread4.nr_urb_entries = brw->urb.nr_vs_entries; 
55
55
   vs.thread4.urb_entry_allocation_size = brw->urb.vsize - 1;
56
 
   vs.thread4.max_threads = MIN2(brw->urb.nr_vs_entries, 16) - 1;
 
56
   vs.thread4.max_threads = MIN2(
 
57
      MAX2(0, (brw->urb.nr_vs_entries - 6) / 2 - 1), 
 
58
      15);
 
59
 
 
60
 
57
61
 
58
62
   if (INTEL_DEBUG & DEBUG_SINGLE_THREAD)
59
63
      vs.thread4.max_threads = 0;