~ubuntu-branches/ubuntu/jaunty/mesa/jaunty

« back to all changes in this revision

Viewing changes to src/glx/x11/indirect.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-23 10:20:24 UTC
  • mfrom: (1.2.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090123102024-1f3kmb3aea7wzk67
Tags: 7.3~rc3-1ubuntu1
* Merge with Debian experimental.
* Drop 102_dont_vblank.patch, since the new drm code in the kernel
  fixes the bugs that it worked around.
* Bump the build-dependency of libdrm to 2.4.4. It's the first version
  with necessary changes to build this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5397
5397
            (void) memcpy((void *) (gc->pc + 44), (void *) (&height), 4);
5398
5398
            (void) memcpy((void *) (gc->pc + 48), (void *) (&format), 4);
5399
5399
            (void) memcpy((void *) (gc->pc + 52), (void *) (&type), 4);
5400
 
            (void) memcpy((void *) (gc->pc + 56),
5401
 
                          (void *) ((pixels == NULL) ? one : zero), 4);
 
5400
            (void) memset((void *) (gc->pc + 56), 0, 4);
5402
5401
            if (compsize > 0) {
5403
5402
                (*gc->fillImage) (gc, dim, width, height, 1, format, type,
5404
5403
                                  pixels, gc->pc + 60, gc->pc + 4);
5424
5423
            (void) memcpy((void *) (pc + 48), (void *) (&height), 4);
5425
5424
            (void) memcpy((void *) (pc + 52), (void *) (&format), 4);
5426
5425
            (void) memcpy((void *) (pc + 56), (void *) (&type), 4);
5427
 
            (void) memcpy((void *) (pc + 60), zero, 4);
 
5426
            (void) memset((void *) (pc + 60), 0, 4);
5428
5427
            __glXSendLargeImage(gc, compsize, dim, width, height, 1, format,
5429
5428
                                type, pixels, pc + 64, pc + 8);
5430
5429
        }
6869
6868
            (void) memcpy((void *) (gc->pc + 76), (void *) (&extent), 4);
6870
6869
            (void) memcpy((void *) (gc->pc + 80), (void *) (&format), 4);
6871
6870
            (void) memcpy((void *) (gc->pc + 84), (void *) (&type), 4);
6872
 
            (void) memcpy((void *) (gc->pc + 88),
6873
 
                          (void *) ((pixels == NULL) ? one : zero), 4);
 
6871
            (void) memset((void *) (gc->pc + 88), 0, 4);
6874
6872
            if (compsize > 0) {
6875
6873
                (*gc->fillImage) (gc, dim, width, height, depth, format, type,
6876
6874
                                  pixels, gc->pc + 92, gc->pc + 4);
6900
6898
            (void) memcpy((void *) (pc + 80), (void *) (&extent), 4);
6901
6899
            (void) memcpy((void *) (pc + 84), (void *) (&format), 4);
6902
6900
            (void) memcpy((void *) (pc + 88), (void *) (&type), 4);
6903
 
            (void) memcpy((void *) (pc + 92), zero, 4);
 
6901
            (void) memset((void *) (pc + 92), 0, 4);
6904
6902
            __glXSendLargeImage(gc, compsize, dim, width, height, depth,
6905
6903
                                format, type, pixels, pc + 96, pc + 8);
6906
6904
        }