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

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/i965/brw_wm_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:
79
79
       */      
80
80
 
81
81
      if (!brw->wm.scratch_buffer) {
82
 
         bmGenBuffers(intel, "wm scratch", 1, &brw->wm.scratch_buffer);
 
82
         bmGenBuffers(intel, "wm scratch", 1, &brw->wm.scratch_buffer, 12);
83
83
         bmBufferSetInvalidateCB(intel,
84
84
                                 brw->wm.scratch_buffer,
85
85
                                 invalidate_scratch_cb,
98
98
                   
99
99
      assert(per_thread <= 12 * 1024);
100
100
      wm.thread2.per_thread_scratch_space = (per_thread / 1024) - 1;
 
101
 
 
102
      /* XXX: could make this dynamic as this is so rarely active:
 
103
       */
 
104
      /* BRW_NEW_LOCK */
101
105
      wm.thread2.scratch_space_base_pointer = 
102
106
         bmBufferOffset(intel, brw->wm.scratch_buffer) >> 10;
103
107
   }
179
183
 
180
184
      .brw = (BRW_NEW_FRAGMENT_PROGRAM | 
181
185
              BRW_NEW_CURBE_OFFSETS |
182
 
              BRW_NEW_FENCE),
 
186
              BRW_NEW_LOCK),
183
187
 
184
188
      .cache = (CACHE_NEW_SURFACE | 
185
189
                CACHE_NEW_WM_PROG |