~ubuntu-branches/ubuntu/lucid/mesa/lucid

« back to all changes in this revision

Viewing changes to src/gallium/state_trackers/xorg/xorg_dri2.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen, Alberto Milone
  • Date: 2010-04-01 13:31:09 UTC
  • mfrom: (1.2.25 upstream) (3.3.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100401133109-8artfla74n44ng23
Tags: 7.7.1-1ubuntu1
[ Alberto Milone ]
debian/rules: pass --with-dri-searchpath=/usr/lib/dri:/usr/lib32/dri
to confflags-dri on i386 so that /usr/lib32/dri is used for 32 bit
compatibility on 64 bit systems (LP: #248392).

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
    GCPtr gc;
296
296
    RegionPtr copy_clip;
297
297
    Bool save_accel;
 
298
    CustomizerPtr cust = ms->cust;
298
299
 
299
300
    /*
300
301
     * In driCreateBuffers we dewrap windows into the
348
349
    ValidateGC(dst_draw, gc);
349
350
 
350
351
    /* If this is a full buffer swap, throttle on the previous one */
351
 
    if (dst_priv->fence && REGION_NUM_RECTS(pRegion) == 1) {
 
352
    if (ms->swapThrottling &&
 
353
        dst_priv->fence && REGION_NUM_RECTS(pRegion) == 1) {
352
354
        BoxPtr extents = REGION_EXTENTS(pScreen, pRegion);
353
355
 
354
356
        if (extents->x1 == 0 && extents->y1 == 0 &&
370
372
    DamageRegionAppend(src_draw, pRegion);
371
373
    DamageRegionProcessPending(src_draw);
372
374
 
 
375
   if (cust && cust->winsys_context_throttle)
 
376
       cust->winsys_context_throttle(cust, ms->ctx, THROTTLE_SWAP);
 
377
 
373
378
    (*gc->ops->CopyArea)(src_draw, dst_draw, gc,
374
379
                         0, 0, pDraw->width, pDraw->height, 0, 0);
375
380
    ms->exa->accel = save_accel;
377
382
    FreeScratchGC(gc);
378
383
 
379
384
    ms->ctx->flush(ms->ctx, PIPE_FLUSH_SWAPBUFFERS,
380
 
                   pDestBuffer->attachment == DRI2BufferFrontLeft ?
 
385
                   (pDestBuffer->attachment == DRI2BufferFrontLeft
 
386
                    && ms->swapThrottling) ?
381
387
                   &dst_priv->fence : NULL);
 
388
 
 
389
   if (cust && cust->winsys_context_throttle)
 
390
       cust->winsys_context_throttle(cust, ms->ctx, THROTTLE_RENDER);
 
391
 
382
392
}
383
393
 
384
394
Bool