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

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/r200/r200_context.h

  • 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:
102
102
struct r200_vertex_program {
103
103
        struct gl_vertex_program mesa_program; /* Must be first */
104
104
        int translated;
105
 
        VERTEX_SHADER_INSTRUCTION instr[R200_VSF_MAX_INST + 2];
 
105
        /* need excess instr: 1 for late loop checking, 2 for 
 
106
           additional instr due to instr/attr, 3 for fog */
 
107
        VERTEX_SHADER_INSTRUCTION instr[R200_VSF_MAX_INST + 6];
106
108
        int pos_end;
107
109
        int inputs[VERT_ATTRIB_MAX];
 
110
        int rev_inputs[16];
 
111
        int gen_inputs_mapped;
108
112
        int native;
 
113
        int fogpidx;
 
114
        int fogmode;
109
115
};
110
116
 
111
117
struct r200_colorbuffer_state {
445
451
 
446
452
/* SPR - point sprite state
447
453
 */
448
 
#define SPR_CMD_0             0
449
 
#define SPR_POINT_SPRITE_CNTL 1
450
 
#define SPR_STATE_SIZE        2
 
454
#define SPR_CMD_0              0
 
455
#define SPR_POINT_SPRITE_CNTL  1
 
456
#define SPR_STATE_SIZE         2
 
457
 
 
458
#define PTP_CMD_0              0
 
459
#define PTP_VPORT_SCALE_0      1
 
460
#define PTP_VPORT_SCALE_1      2
 
461
#define PTP_VPORT_SCALE_PTSIZE 3
 
462
#define PTP_VPORT_SCALE_3      4
 
463
#define PTP_CMD_1              5
 
464
#define PTP_ATT_CONST_QUAD     6
 
465
#define PTP_ATT_CONST_LIN      7
 
466
#define PTP_ATT_CONST_CON      8
 
467
#define PTP_ATT_CONST_3        9
 
468
#define PTP_EYE_X             10
 
469
#define PTP_EYE_Y             11
 
470
#define PTP_EYE_Z             12
 
471
#define PTP_EYE_3             13
 
472
#define PTP_CLAMP_MIN         14
 
473
#define PTP_CLAMP_MAX         15
 
474
#define PTP_CLAMP_2           16
 
475
#define PTP_CLAMP_3           17
 
476
#define PTP_STATE_SIZE        18
451
477
 
452
478
#define VTX_COLOR(v,n)   (((v)>>(R200_VTX_COLOR_0_SHIFT+(n)*2))&\
453
479
                         R200_VTX_COLOR_MASK)
614
640
   struct r200_state_atom vpp[2];
615
641
   struct r200_state_atom atf;
616
642
   struct r200_state_atom spr;
 
643
   struct r200_state_atom ptp;
617
644
 
618
645
   int max_state_size;  /* Number of bytes necessary for a full state emit. */
619
646
   GLboolean is_dirty, all_dirty;
674
701
   __DRIcontextPrivate  *context;       /* DRI context */
675
702
   __DRIscreenPrivate   *screen;        /* DRI screen */
676
703
   __DRIdrawablePrivate *drawable;      /* DRI drawable bound to this ctx */
 
704
   __DRIdrawablePrivate *readable;      /* DRI readable bound to this ctx */
677
705
 
678
706
   drm_context_t hwContext;
679
707
   drm_hw_lock_t *hwLock;
700
728
   GLint last_offset;
701
729
   GLuint hw_primitive;
702
730
 
703
 
/* FIXME: what's the maximum number of components? */
704
 
   struct r200_dma_region *aos_components[11];
 
731
/* hw can handle 12 components max */
 
732
   struct r200_dma_region *aos_components[12];
705
733
   GLuint nr_aos_components;
706
734
 
707
735
   GLuint *Elts;
713
741
   struct r200_dma_region fog;
714
742
   struct r200_dma_region tex[R200_MAX_TEXTURE_UNITS];
715
743
   struct r200_dma_region norm;
 
744
   struct r200_dma_region generic[16];
716
745
};
717
746
 
718
747