~ubuntu-branches/ubuntu/precise/mesa-lts-quantal/precise-updates

« back to all changes in this revision

Viewing changes to src/gallium/drivers/nvc0/nvc0_screen.c

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2013-02-11 16:46:55 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130211164655-23kq9rr4w7wjg70q
Tags: 9.0.2-0ubuntu0.1~precise1
Sync MRE update from quantal (LP: #1130563)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                                unsigned sample_count,
40
40
                                unsigned bindings)
41
41
{
 
42
   if (sample_count > 8)
 
43
      return FALSE;
42
44
   if (!(0x117 & (1 << sample_count))) /* 0, 1, 2, 4 or 8 */
43
45
      return FALSE;
44
46
 
589
591
 
590
592
   for (i = 0; i < 5; ++i) {
591
593
      /* TIC and TSC entries for each unit (nve4+ only) */
592
 
      /* auxiliary constants (6 user clip planes, base instance id */
 
594
      /* auxiliary constants (6 user clip planes, base instance id) */
593
595
      BEGIN_NVC0(push, NVC0_3D(CB_SIZE), 3);
594
596
      PUSH_DATA (push, 512);
595
597
      PUSH_DATAh(push, screen->uniform_bo->offset + (5 << 16) + (i << 9));
610
612
   BEGIN_NVC0(push, NVC0_3D(LINKED_TSC), 1);
611
613
   PUSH_DATA (push, 0);
612
614
 
 
615
   /* return { 0.0, 0.0, 0.0, 0.0 } for out-of-bounds vtxbuf access */
 
616
   BEGIN_NVC0(push, NVC0_3D(CB_SIZE), 3);
 
617
   PUSH_DATA (push, 256);
 
618
   PUSH_DATAh(push, screen->uniform_bo->offset + (5 << 16) + (6 << 9));
 
619
   PUSH_DATA (push, screen->uniform_bo->offset + (5 << 16) + (6 << 9));
 
620
   BEGIN_1IC0(push, NVC0_3D(CB_POS), 5);
 
621
   PUSH_DATA (push, 0);
 
622
   PUSH_DATAf(push, 0.0f);
 
623
   PUSH_DATAf(push, 0.0f);
 
624
   PUSH_DATAf(push, 0.0f);
 
625
   PUSH_DATAf(push, 0.0f);
 
626
   BEGIN_NVC0(push, NVC0_3D(VERTEX_RUNOUT_ADDRESS_HIGH), 2);
 
627
   PUSH_DATAh(push, screen->uniform_bo->offset + (5 << 16) + (6 << 9));
 
628
   PUSH_DATA (push, screen->uniform_bo->offset + (5 << 16) + (6 << 9));
 
629
 
613
630
   /* max MPs * max warps per MP (TODO: ask kernel) */
614
631
   if (screen->eng3d->oclass >= NVE4_3D_CLASS)
615
632
      screen->tls_size = 8 * 64;
734
751
 
735
752
   IMMED_NVC0(push, NVC0_3D(EDGEFLAG), 1);
736
753
 
737
 
   BEGIN_NVC0(push, NVC0_3D(VERTEX_RUNOUT_ADDRESS_HIGH), 2);
738
 
   PUSH_DATA (push, 0xab);
739
 
   PUSH_DATA (push, 0x00000000);
740
 
 
741
754
   PUSH_KICK (push);
742
755
 
743
756
   screen->tic.entries = CALLOC(4096, sizeof(void *));