~darkxst/ubuntu/raring/cogl/lp1163025

« back to all changes in this revision

Viewing changes to cogl/winsys/cogl-winsys-glx.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-07-29 15:50:03 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120729155003-2jsu0k3t6ei1pcrh
Tags: 1.10.4-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
421
421
                    TRUE);
422
422
 
423
423
  if (glx_renderer->pf_glXCopySubBuffer || context->glBlitFramebuffer)
424
 
    COGL_FLAGS_SET (context->winsys_features,
425
 
                    COGL_WINSYS_FEATURE_SWAP_REGION, TRUE);
 
424
    {
 
425
      CoglGpuInfoArchitecture arch;
 
426
 
 
427
      /* XXX: ONGOING BUG:
 
428
       * (Don't change the line above since we use this to grep for
 
429
       * un-resolved bug workarounds as part of the release process.)
 
430
       *
 
431
       * "The "drisw" binding in Mesa for loading sofware renderers is
 
432
       * broken, and neither glBlitFramebuffer nor glXCopySubBuffer
 
433
       * work correctly."
 
434
       * - ajax
 
435
       * - https://bugzilla.gnome.org/show_bug.cgi?id=674208
 
436
       *
 
437
       * This is broken in software Mesa at least as of 7.10
 
438
       */
 
439
      arch = context->gpu.architecture;
 
440
      if (arch != COGL_GPU_INFO_ARCHITECTURE_LLVMPIPE &&
 
441
          arch != COGL_GPU_INFO_ARCHITECTURE_SOFTPIPE &&
 
442
          arch != COGL_GPU_INFO_ARCHITECTURE_SWRAST)
 
443
        {
 
444
          COGL_FLAGS_SET (context->winsys_features,
 
445
                          COGL_WINSYS_FEATURE_SWAP_REGION, TRUE);
 
446
        }
 
447
    }
426
448
 
427
449
  /* Note: glXCopySubBuffer and glBlitFramebuffer won't be throttled
428
450
   * by the SwapInterval so we have to throttle swap_region requests